Skip to content

Commit 85ae3f8

Browse files
committed
return organization_name on OrganizationMembership
1 parent 401976b commit 85ae3f8

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/workos/types/user_management/organization_membership.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ class OrganizationMembership(WorkOSModel):
1919
id: str
2020
user_id: str
2121
organization_id: str
22+
organization_name: str
2223
role: OrganizationMembershipRole
2324
roles: Optional[Sequence[OrganizationMembershipRole]] = None
2425
status: LiteralOrUntyped[OrganizationMembershipStatus]

tests/test_events.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ def test_list_events_organization_membership_missing_custom_attributes(
5959
"id": "om_01234",
6060
"user_id": "user_01234",
6161
"organization_id": "org_01234",
62+
"organization_name": "Foo Corp",
6263
"role": {"slug": "member"},
6364
"status": "active",
6465
"created_at": "2024-01-01T00:00:00.000Z",

tests/utils/fixtures/mock_organization_membership.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ def __init__(self, id):
1111
id=id,
1212
user_id="user_12345",
1313
organization_id="org_67890",
14+
organization_name="Foo Corp",
1415
status="active",
1516
role={"slug": "member"},
1617
custom_attributes={},

0 commit comments

Comments
 (0)