OrganizationMembership
Last updated
Last updated
api :
The OrganizationApi
that this object was created with.
organizationId : number
The organization id that this membership is associated with.
membershipId : string
The id of this membership.
userId : string
The id of the user that this membership is associated with.
constructor(api, membership)
Create a new Membership object using the .
async addRole(name)
Add a new role to this membership.
async getRoles()
Get all the roles associated with this membership.
async getOrganization()
Get the organization associated with this membership.
reference()
async organizationProfile()
Get this membership's organization profile.
async remove()
Remove this membership from the organization.
The result is a boolean that indicates success.
api
must be an instance of ;
membership
must implement the interface.
The result is an object or false
if it failed.
The result is an array of objects or false
if it failed.
The result is an object or false
if it failed.
Create a object that is associated with this membership's user.
The result of this function implements the interface.