-
+
{isAdminOrOwner && deleteMember && (
}
diff --git a/frontend/src/scenes/settings/project/ProjectAccessControl.tsx b/frontend/src/scenes/settings/project/ProjectAccessControl.tsx
index b34d3a52fd94c..ff18dd636e143 100644
--- a/frontend/src/scenes/settings/project/ProjectAccessControl.tsx
+++ b/frontend/src/scenes/settings/project/ProjectAccessControl.tsx
@@ -140,7 +140,7 @@ export function ProjectTeamMembers(): JSX.Element | null {
{
key: 'user_profile_picture',
render: function ProfilePictureRender(_, member) {
- return
+ return
},
width: 32,
},
diff --git a/frontend/src/types.ts b/frontend/src/types.ts
index 31fd16548269b..3053e08502407 100644
--- a/frontend/src/types.ts
+++ b/frontend/src/types.ts
@@ -147,6 +147,7 @@ interface UserBaseType {
uuid: string
distinct_id: string
first_name: string
+ last_name?: string
email: string
}
diff --git a/posthog/api/shared.py b/posthog/api/shared.py
index 1a497278b68d0..0ea32d6582330 100644
--- a/posthog/api/shared.py
+++ b/posthog/api/shared.py
@@ -18,6 +18,7 @@ class Meta:
"uuid",
"distinct_id",
"first_name",
+ "last_name",
"email",
"is_email_verified",
]
diff --git a/posthog/api/test/dashboards/test_dashboard_text_tiles.py b/posthog/api/test/dashboards/test_dashboard_text_tiles.py
index 509c7b0b9f36a..3bf802f18be6b 100644
--- a/posthog/api/test/dashboards/test_dashboard_text_tiles.py
+++ b/posthog/api/test/dashboards/test_dashboard_text_tiles.py
@@ -24,6 +24,7 @@ def _serialised_user(user: Optional[User]) -> Optional[Dict[str, Optional[Union[
"distinct_id": user.distinct_id,
"email": user.email,
"first_name": "",
+ "last_name": "",
"id": user.id,
"uuid": str(user.uuid),
"is_email_verified": None,
diff --git a/posthog/api/test/test_insight.py b/posthog/api/test/test_insight.py
index c3ddb7e3b5dfd..5710513597f6b 100644
--- a/posthog/api/test/test_insight.py
+++ b/posthog/api/test/test_insight.py
@@ -76,6 +76,7 @@ def test_created_updated_and_last_modified(self) -> None:
"uuid": str(self.user.uuid),
"distinct_id": self.user.distinct_id,
"first_name": self.user.first_name,
+ "last_name": self.user.last_name,
"email": self.user.email,
"is_email_verified": None,
}
@@ -84,6 +85,7 @@ def test_created_updated_and_last_modified(self) -> None:
"uuid": str(alt_user.uuid),
"distinct_id": alt_user.distinct_id,
"first_name": alt_user.first_name,
+ "last_name": alt_user.last_name,
"email": alt_user.email,
"is_email_verified": None,
}
diff --git a/posthog/api/test/test_organization_feature_flag.py b/posthog/api/test/test_organization_feature_flag.py
index 78e72269b20bb..90576b688aa75 100644
--- a/posthog/api/test/test_organization_feature_flag.py
+++ b/posthog/api/test/test_organization_feature_flag.py
@@ -50,6 +50,7 @@ def test_get_feature_flag_success(self):
"uuid": str(self.user.uuid),
"distinct_id": self.user.distinct_id,
"first_name": self.user.first_name,
+ "last_name": self.user.last_name,
"email": self.user.email,
"is_email_verified": self.user.is_email_verified,
},
diff --git a/posthog/api/test/test_organization_invites.py b/posthog/api/test/test_organization_invites.py
index 0e52252781963..6d8c9d3a11fc5 100644
--- a/posthog/api/test/test_organization_invites.py
+++ b/posthog/api/test/test_organization_invites.py
@@ -88,6 +88,7 @@ def test_add_organization_invite_with_email(self, mock_capture):
"distinct_id": self.user.distinct_id,
"email": self.user.email,
"first_name": self.user.first_name,
+ "last_name": self.user.last_name,
"is_email_verified": self.user.is_email_verified,
},
"is_expired": False,
diff --git a/posthog/api/test/test_organization_members.py b/posthog/api/test/test_organization_members.py
index 2416e5552fa9a..132f9a5c4ebe8 100644
--- a/posthog/api/test/test_organization_members.py
+++ b/posthog/api/test/test_organization_members.py
@@ -97,6 +97,7 @@ def test_change_organization_member_level(self):
"uuid": str(user.uuid),
"distinct_id": str(user.distinct_id),
"first_name": user.first_name,
+ "last_name": user.last_name,
"email": user.email,
"is_email_verified": None,
},
diff --git a/posthog/api/test/test_signup.py b/posthog/api/test/test_signup.py
index 00c101e4487ee..d4e71415b4569 100644
--- a/posthog/api/test/test_signup.py
+++ b/posthog/api/test/test_signup.py
@@ -62,6 +62,7 @@ def test_api_sign_up(self, mock_capture):
"id": user.pk,
"uuid": str(user.uuid),
"distinct_id": user.distinct_id,
+ "last_name": "",
"first_name": "John",
"email": "hedgehog@posthog.com",
"redirect_url": "/",
@@ -210,6 +211,7 @@ def test_signup_minimum_attrs(self, mock_capture):
"id": user.pk,
"uuid": str(user.uuid),
"distinct_id": user.distinct_id,
+ "last_name": "",
"first_name": "Jane",
"email": "hedgehog2@posthog.com",
"redirect_url": "/",
@@ -364,6 +366,7 @@ def test_default_dashboard_is_created_on_signup(self):
"id": user.pk,
"uuid": str(user.uuid),
"distinct_id": user.distinct_id,
+ "last_name": "",
"first_name": "Jane",
"email": "hedgehog75@posthog.com",
"redirect_url": "/",
@@ -868,6 +871,7 @@ def test_api_invite_sign_up(self, mock_capture):
"id": user.pk,
"uuid": str(user.uuid),
"distinct_id": user.distinct_id,
+ "last_name": "",
"first_name": "Alice",
"email": "test+99@posthog.com",
"redirect_url": "/",
@@ -1076,6 +1080,7 @@ def test_existing_user_can_sign_up_to_a_new_organization(self, mock_update_disti
"id": user.pk,
"uuid": str(user.uuid),
"distinct_id": user.distinct_id,
+ "last_name": "",
"first_name": "",
"email": "test+159@posthog.com",
"redirect_url": "/",
@@ -1151,6 +1156,7 @@ def test_cannot_use_claim_invite_endpoint_to_update_user(self, mock_capture):
"id": user.pk,
"uuid": str(user.uuid),
"distinct_id": user.distinct_id,
+ "last_name": "",
"first_name": "",
"email": "test+189@posthog.com",
"redirect_url": "/",
diff --git a/posthog/api/user.py b/posthog/api/user.py
index c7c1813b8b38f..26e887237906b 100644
--- a/posthog/api/user.py
+++ b/posthog/api/user.py
@@ -89,6 +89,7 @@ class Meta:
"uuid",
"distinct_id",
"first_name",
+ "last_name",
"email",
"pending_email",
"email_opt_in",