OrganizationMembership
The OrganizationMembership object is the model around an organization membership entity and describes the relationship between users and organizations.
Properties
- Name
id- Type
string- Description
A unique identifier for this organization membership.
- Name
publicMetadata- Type
object- Description
Custom metadata that are visible to the frontend.
- Name
role- Type
string- Description
The role of the current user in the organization.
- Name
publicUserData- Type
PublicUserData- Description
Public information about the user that this membership belongs to.
- Name
organization- Type
Organization- Description
The
Organizationobject the membership belongs to.
- Name
createdAt- Type
Date- Description
Date of the time the membership was created.
- Name
updatedAt- Type
Date- Description
Date of the last time the membership was updated.
function destroy(): Promise<OrganizationMembership>;function update(updateParams: UpdateOrganizationMembershipParams): Promise<OrganizationMembership>;Updates the member's role.
UpdateOrganizationMembershipParams
- Name
role- Type
string- Description
The role of the new member.