Organization Invitations
These are all methods on the Organization class that allow you to manage the invitations to an organization.
getPendingInvitations()
function getPendingInvitations(params?: GetPendingInvitationsParams): Promise<OrganizationInvitation[]>;
Retrieve the members of the selected organization.
GetPendingInvitationsParams
Name | Type | Description |
---|
limit | number | undefined | Limit of the results returned. |
offset | number | undefined | The offset of results to start the retrieval. |
Returns
inviteMember()
function inviteMember(params: InviteMemberParams): Promise<OrganizationInvitation>;
Creates and sends an invitation to the target email address for becoming a member with the role passed on the function parameters.
InviteMemberParams
Name | Type | Description |
---|
emailAddress | string | The email address to invite. |
role | 'admin' | 'basic_member' | 'guest_member' | The role of the new member. |
Returns
inviteMembers()
function inviteMembers(params: InviteMembersParams): Promise<OrganizationInvitation[]>;
Creates and sends an invitation to the target email addresses for becoming a member with the role passed on the function parameters.
InviteMembersParams
Name | Type | Description |
---|
emailAddresses | string[] | The email addresses to invite. |
role | 'admin' | 'basic_member' | 'guest_member' | The role of the new members. |
Returns