Breaking changes
- Project management renames: We've renamed project data to 'snapshot' - and made the related functions clearer this way:
export
>exportSnapshot
import
>importSnapshot
Enhancements
- Batch invitation of users with roles: We added the
roles
parameter to theinviteBatch
function, so that users can be invited with predefined roles. - Snapshot validation: We added a new function
validateSnapshot
, which performs an import dry run and reports any validation failures or missing data. We recommend calling this function right beforeimportSnapshot
, to minimize risk of import failure. - Additional errors upon batch user invite: When batch inviting users, we added a new attribute to the response named
additionalErrors
, which will expose which users failed on the invite sent and which didn't. - Revoke previous user sessions: We added a new configuration in
LoginOptions
calledrevokeOtherSessions
. This new configuration will expire all JWTs created prior to the one in the request. This is useful for signing the user out of all previous sessions, except for the current one. - Test user searching: We added a new function named
searchTestUsers
, to filter over test users. Learn more from our SDK's README. - Enhanced functionality for adding user roles: With this new version of the
addRole
function, you can add a role to an existing user not just on the project level, but also on the tenant level. If the tenant isn't already associated with the user, it will happen as part of this command.