OrganizationMembership

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

Properties

Link copied to clipboard

The date when the membership was created.

Link copied to clipboard
val id: String

The unique identifier for this organization membership.

Link copied to clipboard

The Organization object the membership belongs to.

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

Public information about the user that this membership belongs to.

Link copied to clipboard

The role of the current user in the organization.

Link copied to clipboard

The date when the membership was last updated.