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