How to fetch all users via user provisioning SCIM API
Platform Notice: Cloud Only - This article only applies to Atlassian products on the cloud platform.
Summary
Fetch all users from the provisioning directory using SCIM REST API.
Environment
User provisioning integration with Atlassian organization.
Solution
Run the Get users SCIM REST API to fetch all users from the user provisioning directory at the Atlassian organization.
Example:
1
2
3
4
curl --request GET \ --url 'https://api.atlassian.com/scim/directory/{directoryId}/
Users' \
--header 'Authorization: Bearer <access_token>' \
--header 'Accept: application/json'
ℹ️ In this example,
directoryID: This is the ID of the user provisioning directory created at Atlassian organization.
access_token: This is the API token generated for the user provisioning directory.
This will provide a list of the first max 100 users in the provisioning directory at once. To fetch more than 100 users one can use the startIndex parameter in API.
Example: To fetch User 101 to 200
1
2
3
curl --request GET \
--url 'https://api.atlassian.com/scim/directory/{directoryID}/Users?startIndex=101' \
--header 'Authorization: Bearer <API KEY>'
Or
1
2
3
curl --request GET \
--url 'https://api.atlassian.com/scim/directory/{directoryID}/Users?startIndex=101&count=200' \
--header 'Authorization: Bearer <API KEY>'
Was this helpful?