Prerequisites:
- These operations are available on every plan.
- An account API key with the
X-Paradime-Workspaceheader, or a workspace API key. - The User access admin capability group. To only list users and read auto-join domains, User access viewer is enough.
Operations
List users
users lists the people of the targeted workspace, ordered by email, then status. status is ACTIVE for a member who can sign in, INVITED for someone who hasn’t signed up yet, and DEACTIVATED for a former member. Pass status to list only some of them: every status is listed when you leave it out.
An invitee has no uid, and inviteStatus says whether their invitation link still works (PENDING) or not (EXPIRED). For everyone else, uid is the id that updateUser, deactivateUser, and reactivateUser take.
Example response
Example response
Invite a user
createUser invites a person to the targeted workspace with a role, and sends them the invitation email. The invitee then appears in users as INVITED, with a PENDING invitation.
- An email that belongs to a member, a former member, or a pending invitation is a
CONFLICT. To bring back a former member, usereactivateUser. - An expired invitation is not a conflict: call
createUseragain to send a new one.
SANDBOX_USER: ADMIN, DEVELOPER, BUSINESS, BILLING_ADMIN, SECURITY_ADMIN, WORKSPACE_SETTINGS_ADMIN, WORKSPACE_ADMIN, and ANALYST. Without role-based access control, only ADMIN, DEVELOPER, and BUSINESS are offered. Any other role is VALIDATION_FAILED.
Change a role, deactivate, or reactivate a user
Each of these takes the user’suid.
updateUserchanges the role of an active member. Giving a user the role they hold is not an error. A deactivated user is aCONFLICT: reactivate them first.deactivateUserdeactivates a member: they can no longer sign in to the workspace. Deactivating a former member is not an error.reactivateUserbrings back a former member, with the role they had. Reactivating an active member is not an error. If an API key can’t give the user’s role, the call isVALIDATION_FAILED: reactivate them in Paradime.
reactivateUser:
Set auto-join domains
With auto-join, people whose email is at one of the workspace’s domains join it when they sign in, without an invitation.setAutoJoinDomains replaces the full set of domains. Domains are matched in lowercase. An empty list turns auto-join off.
Example response
Example response
Workspace.autoJoinDomains returns the domains in lowercase, sorted.
Errors
These are the cases specific to users. For the error format and the codes every area shares, see Errors.Related
- Python SDK: Users: the same operations in
paradime.admin.users. - Paradime CLI:
paradime admin:paradime admin users. - Invite users, Manage users, and Enable auto-join: the same tasks in Paradime.
- Standard roles and permissions and Role-based access control: what each role can do.