OrganizationRole
Members
The OrganizationAPI that this object was created with.
id : string
id : stringThe id of this role.
name : string
name : stringThe name of this role.
The membership that this role is associated with.
Methods
constructor(api, member, role)
constructor(api, member, role)Create a new role object using the Organization API.
apimust be an instance ofOrganizationApi;membermust be an instance ofOrganizationMembership;rolemust implement theRoleReferenceinterface;
This constructor should not be called directly, use OrganizationMembership.getRoles() instead.
async remove()
async remove()Remove this role from the membership.
The result is a boolean that indicates success.
if (await role.remove()) {
// the role was successfully removed from the membership
}Last updated