User Provisioning API
These API endpoints allows the admin to manage their users and groups programmatically.
info
Before using the API, please obtain the API key by following the instructions here.
#
User Operations#
Get all users in a tenant with full informationSample request:
Sample response:
note
- current_sign_in_at: latest sign-in timestamp.
- last_sign_in_at: previous sign-in timestamp (before the current_sign_in_at time).
- allow_authentication_token is used to determine whether a user is allowed for API access (only Admin can update this field for a specific user).
- has_authentication_token is used for determining whether a user has already generated an API access key (this flag will be turned to false if the Revoke Authentication Token call is requested).
- A Tenant is the organization that is using Holistics (e.g. Grab).
#
Invite a new user to HolisticsSample request:
Parameters:
- name: user's full name
- email: user's email address
- role: role: user role. At Holistics, there are 4 roles: admin, analyst, explorer, viewer (more about Holistics' permission system at https://docs.holistics.io/docs/permission-system).
- message: The invitation message that will be sent to the invitee.
Sample request body:
Sample success response:
Sample error response when a user already exists in Holistics's database:
You will need to use the Resend Invitation API instead.
#
Resend invitation to userSample request:
Sample success response:
#
Soft-delete a userSample request:
Sample success response:
#
Restore a deleted userSample request:
Sample request body:
Sample error response when attempt to restore a non-deleted user:
#
Allow/ Revoke a user's API accessSample request:
Sample body request:
Sample success response:
#
Revoke Authentication Token from a userSample request:
Sample success response:
#
Check whether email address is already used for a user in HolisticsSample request:
Sample success response:
#
Change user role in HolisticsRequired params:
- user_id
- user: an object that contains the needed information for changing user role
- role (string): can be
admin
,analyst
oruser
- remove_groups (boolean): false by default. If the params are set to true, then the user's groups will also be removed after the role is changed.
- role (string): can be
Sample request:
Sample body request:
#
Find user by email addressSample request:
Sample success response:
#
Group Operations#
Get all groups in a tenantSample request:
Sample response:
#
Create a new groupSample request:
Sample body request:
Sample success response:
#
Update information of an existing groupSample request:
Sample body request:
#
Delete an existing groupSample request:
#
Add a user into a groupSample request:
Sample success response:
#
Remove a user from a groupSample request:
Sample success response: