Skip to content

Commit f0e716e

Browse files
authored
feat(user-management): add directory_managed to OrganizationMembership (#583)
1 parent c67972f commit f0e716e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-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
@@ -14,6 +14,7 @@ class BaseOrganizationMembership(WorkOSModel):
1414
user_id: str
1515
organization_id: str
1616
status: LiteralOrUntyped[OrganizationMembershipStatus]
17+
directory_managed: bool = False
1718
created_at: str
1819
updated_at: str
1920

tests/utils/fixtures/mock_organization_membership.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ def __init__(
2525
user_id="user_123",
2626
organization_id="org_456",
2727
status="active",
28+
directory_managed=False,
2829
created_at="2024-01-01T00:00:00Z",
2930
updated_at="2024-01-01T00:00:00Z",
3031
),
@@ -34,6 +35,7 @@ def __init__(
3435
user_id="user_789",
3536
organization_id="org_456",
3637
status="active",
38+
directory_managed=False,
3739
created_at="2024-01-02T00:00:00Z",
3840
updated_at="2024-01-02T00:00:00Z",
3941
),
@@ -54,6 +56,7 @@ def __init__(self, id):
5456
user_id="user_12345",
5557
organization_id="org_67890",
5658
status="active",
59+
directory_managed=False,
5760
role={"slug": "member"},
5861
custom_attributes={},
5962
created_at=now,

0 commit comments

Comments
 (0)