getOrganizationMemberships
suspend fun User.getOrganizationMemberships(limit: Int = 20, offset: Int = 0): ClerkResult<ClerkPaginatedResponse<OrganizationMembership>, ClerkErrorResponse>
Retrieves the organization memberships for the current user.
This method returns a paginated list of organizations where the user is a member. Organization memberships represent the user's active participation in organizations, including their role and permissions within each organization.
Return
A ClerkResult containing a ClerkPaginatedResponse of OrganizationMembership objects on success, or a ClerkErrorResponse on failure
Parameters
limit
The maximum number of organization memberships to retrieve per request. Default is 20.
offset
The number of organization memberships to skip before starting to return results. Used for pagination. Default is 0.