-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
129 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -531,9 +531,9 @@ await descopeClient.management.user.create( | |
[{ tenantId: 'tenant-ID1', roleNames: ['role-name1'] }], | ||
); | ||
|
||
// Alternatively, a user can be created and invited via an email message. | ||
// Alternatively, a user can be created and invited via an email / text message. | ||
// Make sure to configure the invite URL in the Descope console prior to using this function, | ||
// and that an email address is provided in the information. | ||
// and that an email address / phone number is provided in the information. | ||
await descopeClient.management.user.invite( | ||
'[email protected]', | ||
'[email protected]', | ||
|
@@ -543,6 +543,23 @@ await descopeClient.management.user.invite( | |
[{ tenantId: 'tenant-ID1', roleNames: ['role-name1'] }], | ||
); | ||
|
||
// You can invite batch of users via an email / text message. | ||
// Make sure to configure the invite URL in the Descope console prior to using this function, | ||
// and that an email address / phone number is provided in the information. | ||
await descopeClient.management.user.inviteBatch( | ||
users: [{ | ||
loginId: '[email protected]', | ||
email: '[email protected]', | ||
phone: '+123456789123', | ||
displayName: 'Desmond Copeland', | ||
userTenants: [{ tenantId: 'tenant-ID1', roleNames: ['role-name1'] }], | ||
} | ||
], | ||
sendMail: true, | ||
sendSMS: false, | ||
inviteUrl: "<invite_url>", | ||
); | ||
|
||
// Update will override all fields as is. Use carefully. | ||
await descopeClient.management.user.update( | ||
'[email protected]', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters