Using SCIM API Provisioning
This page contains information on how to use Postman, a popular API platform to provision your users into your Keeper tenant.
Setting up the Environment
Open Postman
Create a New Request
Method: GET , POST, DELETE, PATCH or PUT
URL: https://keepersecurity.com/api/rest/scim/v2/<node_id>
Set the Headers
Authorization
Bearer YOUR_AUTH_TOKEN
Content-Type
application/scim+json
Set the Body
Choose raw and select JSON format.
Adding a User - Users/POST
Set the HTTP Method and URL
Set the HTTP method to POST using the dropdown menu.
Enter the URL for adding a user:
Set the Body
Click on the "Body" tab below the URL field
Choose raw and select JSON format
Add the JSON body with the details of the user you want to add. Here's an example JSON body:
Send the Request
Response HTTP codes
HTTP code
Meaning
201
Created
success
409
Conflict
Email already taken
428
Precondition Required
Number of licensed seats was exceeded.
Locking/Unlocking a user - Users/PATCH
Set the Method to PATCH and the URL to the following:
Set the body of the JSON request
Choose raw and select JSON format
Add the JSON body with the details of the user you want to add. Here's an example JSON body:
Send the request
Retrieve information about a user/users - Users/GET
Open Postman and set the HTTP method to GET
For a information about all the users in a node, use the following URL:
For information on a specific user, specify the user ID
Send the request
We also support filter for users, below is an example for searching based on user id:
Additionally, you can use pagination by using startIndex and count:
Retrieve Groups & Group ID’s - Groups/GET
Open Postman and create a new GET request
Set the URL:
Send the request
Expected Response
The response will be a JSON object containing details of all groups under the specified node. The "id" field within each group object represents the group ID. In Keeper, a group is represented by a Keeper Team object. The ID is the Keeper Team UID.
Creating a Team - Groups/POST
Create a New Request
Click on "New" and then select "Request" from the dropdown menu.
Alternatively, you can click on the "Request" tab if it is already open
Set the HTTP Method and URL
Set the HTTP method to POST using the dropdown menu
Enter the URL for adding a team
Set the Body
Click on the "Body" tab below the URL field.
Choose raw and select JSON format.
Add the JSON body with the details of the team you want to create. Here's an example JSON body:
Send the Request
Click on the "Send" button in Postman to execute the request
Deleting a team - Groups/DELETE
Set the HTTP Method and URL
Set the HTTP method to DELETE using the dropdown menu.
Set the URL:
Send the request
Adding or removing a user to a team - Users/PATCH
Set the HTTP Method and URL
Set the HTTP method to PATCH using the dropdown menu.
Set the URL:
Set the Body
Click on the "Body" tab below the URL field
Choose raw and select JSON format
Add the JSON body with the details of the user you want to add to the team. Here's an example JSON body:
Send the request
Updating User Attributes - Users/PUT
Create a New Request
Click on "New" and then select "Request" from the dropdown menu.
Alternatively, you can click on the "Request" tab if it is already open.
Set the HTTP Method and URL
Set the HTTP method to PUT.
Use the URL:
Set the Body
Click on the "Body" tab below the URL field
Choose raw and select JSON format
Here is an example of the JSON body to update the user information:
Changing the "active" flag to false will lock the user account, changing it to true will unlock the account
Send the request
Click on the "Send" button in Postman to execute the request
Updating User Attributes - Users/Patch
SCIM related endpoints/GET
Set the HTTP method to Get
Use the URL:
ServiceProviderConfig / ResourceTypes (User/Group) / Schemas
Last updated
Was this helpful?