Search users
Returns a list of users from the tenant that match all the provided search criteria (all criteria are optional).
Analytic events
- USER_SEARCH_START
- USER_SEARCH_SUCCESS
- USER_SEARCH_FAIL
SecuritybearerAuth
Request
Request Body schema: application/jsonrequired
The search criteria
Responses
200
Users retrieved
400
Bad Request
post/core/v1/users/search
Request samples
- Payload
- curl
- Node.js
- JavaScript
- Python
- C#
- Java
application/json
{- "claims": {
- "given_name": "Jamie",
- "address": {
- "street_name": "Queen Street"
}
}, - "authenticationProvider": {
- "providerId": "41458e5a-9092-40b7-9a26-d4eb43c5792f",
- "subjectId": "example-university-oauth2|123456789"
}, - "limit": 100,
- "cursor": "Y3JlYXRlZEF0PTIwMjAtMDgtMjVUMDY6NDY6MDkuNTEwWiZpZD1h"
}
Response samples
- 200
- 400
application/json
{- "nextCursor": "Y3JlYXRlZEF0PTIwMjAtMDgtMjVUMDY6NDY6MDkuNTEwWiZpZD1hNjZmZmVhNS04NDhlLTQzOWQtODBhNC1kZGE1NWY1M2UzNmM",
- "data": [
- {
- "id": "0c3fad74-a8df-4a2d-8e75-f2d356b413ba",
- "claims": {
- "givenName": "Patrick John",
- "familyName": "Smith",
- "dob": "1990-06-01"
}, - "authenticationProvider": {
- "subjectId": "example-university-oauth2|123456789"
}
}
]
}
Retrieve all users
Returns a list of all users on your tenant.
Analytic events
- USER_RETRIEVE_LIST_START
- USER_RETRIEVE_LIST_SUCCESS
- USER_RETRIEVE_LIST_FAIL
SecuritybearerAuth
Request
Responses
200
Users retrieved
400
Bad Request
get/core/v1/users
Request samples
- curl
- Node.js
- JavaScript
- Python
- C#
- Java
Response samples
- 200
- 400
application/json
{- "nextCursor": "Y3JlYXRlZEF0PTIwMjAtMDgtMjVUMDY6NDY6MDkuNTEwWiZpZD1hNjZmZmVhNS04NDhlLTQzOWQtODBhNC1kZGE1NWY1M2UzNmM",
- "data": [
- {
- "id": "0c3fad74-a8df-4a2d-8e75-f2d356b413ba",
- "claims": {
- "givenName": "Patrick John",
- "familyName": "Smith",
- "dob": "1990-06-01"
}
}
]
}
Retrieve a user
Retrieve an existing user by providing its ID.
- USER_RETRIEVE_START
- USER_RETRIEVE_SUCCESS
- USER_RETRIEVE_FAIL
SecuritybearerAuth
Request
Responses
200
User retrieved
400
Bad Request
404
User not found
get/core/v1/users/{id}
Request samples
- curl
- Node.js
- JavaScript
- Python
- C#
- Java
Response samples
- 200
- 400
- 404
application/json
{- "id": "0c3fad74-a8df-4a2d-8e75-f2d356b413ba",
- "claims": {
- "givenName": "Patrick John",
- "familyName": "Smith",
- "dob": "1990-06-01"
}
}
Update a User
Updates an existing user by providing its ID.
- USER_UPDATE_START
- USER_UPDATE_SUCCESS
- USER_UPDATE_FAIL
SecuritybearerAuth
Request
Responses
200
User updated
400
Bad Request
404
User not found
put/core/v1/users/{id}
Request samples
- Payload
- curl
- Node.js
- JavaScript
- Python
- C#
- Java
application/json
{- "claims": {
- "givenName": "Patrick John",
- "familyName": "Smith",
- "dob": "1990-06-01"
}
}
Response samples
- 200
- 400
- 404
application/json
{- "id": "0c3fad74-a8df-4a2d-8e75-f2d356b413ba",
- "claims": {
- "givenName": "Patrick John",
- "familyName": "Smith",
- "dob": "1990-06-01"
}
}
Delete a user
Deletes a user and removes any persisted data related to them by providing the user ID.
Any credentials issued to the user remain valid even after the user is deleted.
Analytic events
- USER_DELETE_START
- USER_DELETE_SUCCESS
- USER_DELETE_FAIL
SecuritybearerAuth
Request
Responses
204
User deleted
400
Bad request
404
User not found
delete/core/v1/users/{id}
Request samples
- curl
- Node.js
- JavaScript
- Python
- C#
- Java
Response samples
- 400
- 404
application/json
{- "code": "BadRequest",
- "message": "Validation Error",
- "details": [
- {
- "value": "xxx",
- "msg": "Invalid value",
- "param": "id",
- "location": "params"
}
]
}
Retrieve all user credentials data
Returns a list of metadata for all the credentials referenced by the provided userId
.
SecuritybearerAuth
Request
Responses
200
User credentials retrieved
400
Bad Request
get/core/v1/users/{userId}/credentials
Request samples
- curl
- Node.js
- JavaScript
- Python
- C#
- Java
Response samples
- 200
- 400
application/json
{- "data": [
- {
- "id": "552b35fe-a3ed-4c33-8c3c-64810c712323",
- "type": "CourseCredential",
- "profile": "web-semantic"
}
], - "nextCursor": "Y3JlYXRlZEF0PTIwMjAtMDgtMjVUMDY6NDY6MDkuNTEwWiZpZD1hNjZmZmVhNS04NDhlLTQzOWQtODBhNC1kZGE1NWY1M2UzNmM"
}