Skip to content

Commit dae4dab

Browse files
vivekkhimanigjtorikianclaude
authored
feat: return organization_name on OrganizationMembership (#574)
Co-authored-by: Garen J. Torikian <gjtorikian@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ccc8cd5 commit dae4dab

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-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
@@ -13,6 +13,7 @@ class BaseOrganizationMembership(WorkOSModel):
1313
id: str
1414
user_id: str
1515
organization_id: str
16+
organization_name: str
1617
status: LiteralOrUntyped[OrganizationMembershipStatus]
1718
directory_managed: bool = False
1819
created_at: str

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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ def __init__(
2424
id="om_01ABC",
2525
user_id="user_123",
2626
organization_id="org_456",
27+
organization_name="Foo Corp",
2728
status="active",
2829
directory_managed=False,
2930
created_at="2024-01-01T00:00:00Z",
@@ -34,6 +35,7 @@ def __init__(
3435
id="om_01DEF",
3536
user_id="user_789",
3637
organization_id="org_456",
38+
organization_name="Foo Corp",
3739
status="active",
3840
directory_managed=False,
3941
created_at="2024-01-02T00:00:00Z",
@@ -55,6 +57,7 @@ def __init__(self, id):
5557
id=id,
5658
user_id="user_12345",
5759
organization_id="org_67890",
60+
organization_name="Foo Corp",
5861
status="active",
5962
directory_managed=False,
6063
role={"slug": "member"},

0 commit comments

Comments
 (0)