UserStore
Collection of Rulecube User-related functions.
Methods
invite
invite(email: string, options: { accessExpirationDate?: Date | string, roles: string[] })
Creates a user with the given email and options.
Parameters
email string
The email of the user.
options { accessExpirationDate?: Date | string, roles: string[] }
The object containing the user options.
Return type
string
Examples
UserStore.invite('[email protected]', { accessExpirationDate: TODAY().addDays(30), roles: ['WorkspaceUser'] })
Last updated