OrganizationApi
You need the organization:manage scope to access this API.
For ease of use we recommend using the User object for interaction instead.
Interfaces
RoleReference
interface RoleReference {
name: string,
id: string
}MembershipInfo
interface MembershipInfo {
roles: RoleReference[],
firstName: string,
lastName: string,
email: string,
organizationId: number,
membershipId: string,
userId: string
}OrganizationCreateDetails
OrganizationUpdateDetails
OrganizationInfo
OrganizationMembershipReference
Methods
constructor(user, endpoint)
Create an Organization API object.
usershould be an instance of theUserobject.endpointshould be the Vulos Identity endpoint.
async organizationList()
Get a list of all the organizations that the user is in.
The result is an array of objects that implement the OrganizationMembershipReference.
async organizationInfo(id)
Get information of an organization by the organization's ID.
The result implements the OrganizationInfo interface.
async organizationUpdate(id, details)
Update an organization's details.
The details object implements the OrganizationUpdateDetails interface.
The result implements the SuccessResponse interface.
async organizationDelete(id)
Delete an organization.
The result implements the SuccessResponse interface.
async organizationCreate(details)
Create a new organization.
The details object implements the OrganizationCreateDetails interface.
The result implements the OrganizationMembershipReference interface.
async memberInfo(id, member)
Get information about a specific member.
idis the organization id;memberis the membership id;
The result implements the MembershipInfo interface.
async memberDelete(id, member)
Remove a member from an organization.
The result implements the SuccessResponse interface.
async memberInvite(id, email)
Invite a user to an organization by email.
The result implements the SuccessResponse interface.
async roleList(id, member)
Get all the roles for a member.
The result is an array of objects that implement the RoleReference interface.
async roleCreate(id, member, name)
Add a new role to a user.
The result implements the RoleReference interface.
async roleDelete(id, member, role)
Remove a role from a member.
roleis the role id;
The result implements the SuccessResponse interface.
Last updated