OrganizationMembership
@Serializable
The OrganizationMembership object is the model around an organization membership entity and describes the relationship between users and organizations.
Constructors
Link copied to clipboard
constructor(id: String, publicMetadata: JsonElement, role: String, roleName: String, permissions: List<String>? = null, publicUserData: PublicUserData? = null, organization: Organization, createdAt: Long, updatedAt: Long)
Properties
Link copied to clipboard
The organization associated with this organization membership
Link copied to clipboard
The permissions associated with the role.
Link copied to clipboard
Metadata that can be read from the Frontend API and Backend API and can be set only from the Backend API
Link copied to clipboard
The public user data associated with this organization membership
Functions
Link copied to clipboard
Deletes the organization membership for the current user.
Link copied to clipboard
suspend fun OrganizationMembership.updateMembership(userId: String, role: String): ClerkResult<OrganizationMembership, ClerkErrorResponse>
Updates the role of a member within the organization.