OrganizationMembership

@Serializable
data class OrganizationMembership(val id: String, val publicMetadata: JsonElement, val role: String, val roleName: String, val permissions: List<String>? = null, val publicUserData: PublicUserData? = null, val organization: Organization, val createdAt: Long, val updatedAt: Long)

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 timestamp when the organization membership was created

Link copied to clipboard
val id: String

The unique identifier for this organization membership

Link copied to clipboard

The organization associated with this organization membership

Link copied to clipboard
val permissions: List<String>? = null

The permissions associated with the role.

Link copied to clipboard
val publicMetadata: JsonElement

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

Link copied to clipboard

The role of the current user in the organization

Link copied to clipboard

The formatted role name associated with this organization membership.

Link copied to clipboard

The timestamp when the organization membership was last updated

Functions

Link copied to clipboard

Deletes the organization membership for the current user.

Link copied to clipboard

Updates the role of a member within the organization.