You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @tanayagrawal - thanks for your feedback. This is currently by design for backwards compatibility. Prior to introducing pending and inactive organization memberships, the list organization memberships API only returned active memberships. We'll see about changing this behavior in the future.
Sounds good! But could you please update the behavior in the SDK documentation? This behavior wasn't evident in the documentation and it took some time to exactly figure why the API did not return the entire list of memberships.
Sounds good! But could you please update the behavior in the SDK documentation? This behavior wasn't evident in the documentation and it took some time to exactly figure why the API did not return the entire list of memberships.
Yes, absolutely. This has been updated in the docs here.
const memberships = await workos.userManagement.listOrganizationMemberships({ organizationId: organizationId });
only returns
active
memberships of an organization.I need to write the following query to get all memberships:
const memberships = await workos.userManagement.listOrganizationMemberships({ organizationId: organizationId, statuses: ['active', 'pending', 'inactive'], limit: 100 });
The first query should return all memberships for an organization if only organization id is passed without the status list.
The text was updated successfully, but these errors were encountered: