paradime.admin.users manages a workspace’s members, former members and invitees, and the email domains whose users join the workspace on sign-up. For the GraphQL operations, see Users.
Prerequisites
- These operations are available on every plan.
- Your API key needs the User access admin capability group. To only list users and read auto-join domains, User access viewer is enough.
- The admin client of the
paradime-iopackage. See Admin client.
paradime.users, the User Management module, also invites and disables users. paradime.admin.users adds statuses, pagination, reactivation and auto-join domains, and raises typed errors.List users
Iterates over the workspace’s users, ordered by email, then status.Only users with one of these statuses:
ACTIVE, INVITED or DEACTIVATED. Every status when left out.Invite a user
Invites a person by email with a role, and sends them the invitation email. An email that already belongs to a user or to a pending invitation raisesAdminConflictException. For a former member, use reactivate. A role that an API key can’t give in the workspace raises AdminValidationFailedException, with field set to ["input", "accountType"].
The role that the invitation gives. See Roles.
Change a user’s role
Changes the role of an active member. Giving a user the role they hold is not an error.The user, with their new role. A uid that the workspace doesn’t know raises
AdminNotFoundException.Deactivate a user
Deactivates a member: they can no longer sign in to the workspace.reactivate brings them back with the same role. Deactivating a former member is not an error.
Reactivate a user
Brings a former member back with the role they had. Reactivating an active user is not an error.Read auto-join domains
Reads the email domains whose users join the workspace on sign-up. See Enable auto-join.Set auto-join domains
Replaces the workspace’s auto-join domains. An empty list turns auto-join off.Types
Import the model and enums fromparadime.apis.admin.users.types.
Roles
UserAccountType values and the roles they stand for in Paradime. See Roles and permissions.