Skip to content

Commit a66a738

Browse files
authored
Add status to organization membership (#233)
1 parent b816b6c commit a66a738

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

tests/utils/fixtures/mock_organization_membership.py

+2
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@ def __init__(self, id):
77
self.id = id
88
self.user_id = "user_12345"
99
self.organization_id = "org_67890"
10+
self.status = "active"
1011
self.created_at = datetime.datetime.now()
1112
self.updated_at = datetime.datetime.now()
1213

1314
OBJECT_FIELDS = [
1415
"id",
1516
"user_id",
1617
"organization_id",
18+
"status",
1719
"created_at",
1820
"updated_at",
1921
]

workos/resources/user_management.py

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ class WorkOSOrganizationMembership(WorkOSBaseResource):
6666
"id",
6767
"user_id",
6868
"organization_id",
69+
"status",
6970
"created_at",
7071
"updated_at",
7172
]

0 commit comments

Comments
 (0)