getOrganizationMemberships
suspend fun Organization.getOrganizationMemberships(query: String? = null, role: String? = null, limit: Int = 20, offset: Int = 0): ClerkResult<ClerkPaginatedResponse<OrganizationMembership>, ClerkErrorResponse>
Retrieves the memberships for this organization.
This method returns all memberships associated with the organization, including information about the users and their roles within the organization.
Return
A ClerkResult containing a paginated response of OrganizationMembership objects on success, or a ClerkErrorResponse on failure.
Parameters
query
Optional search query to filter memberships by user name or email.
role
Filter memberships by role. Only memberships with the specified role will be returned.
limit
The maximum number of memberships to return per request. Default is 20.
offset
The number of memberships to skip when paginating through results. Default is 0.