List Users
Search users
A POST
version of this endpoint is provided if a large number of filters are required.
Returns a paginated list of users
Query parameters
-
userId
array[string(uuid)] Filter the results by user ID.
Multiple identifiers can be specified by repeating the query parameter. e.g.
userId=value1&userId=value2
This parameter supports a maximum of 30 identifiers.
At least
1
but not more than30
elements. -
upn
array[string] Filter the results by user UPN.
Multiple identifiers can be specified by repeating the query parameter. e.g.
upn=value1&upn=value2
This parameter supports a maximum of 30 identifiers.
At least
1
but not more than30
elements. -
externalId
array[string] Filter the results by external ID.
Multiple identifiers can be specified by repeating the query parameter. e.g.
externalId=value1&externalId=value2
This parameter supports a maximum of 30 identifiers.
At least
1
but not more than30
elements. -
username
array[string] Filter the results by username.
Multiple identifiers can be specified by repeating the query parameter. e.g.
username=value1&username=value2
This parameter supports a maximum of 30 identifiers.
At least
1
but not more than30
elements. -
email
string(email) Filter the results by email address.
-
name
string Filter the results by the user's name.
Minimum length is
1
. -
role
string Filter the results by user role.
Values are
manager
,editor
,leadership
,guardian
,teacher
, orstudent
. -
limit
integer(int32) Specify the pagination limit, defaults to 100
-
offset
integer(int32) Specify the pagination offset, defaults to 0.
Cannot be used with
cursor
-
cursor
string(byte) | null Provide the next or previous page cursor
-
sort
object Specify the sort order of the results.
The default sort order is
sort[field]=createdAt&sort[direction]=desc
curl \
--request GET 'https://connect.century.tech/api/v1/users' \
--header "x-api-key: $API_KEY"
{
"data": [
{
"upn": "Y89421121401A",
"roles": [
"student"
],
"emails": [
"john.doe@email.com"
],
"gender": "male",
"userId": "68f06c66-702a-4c26-b8c5-b6dc4f81f25d",
"fullName": "John Doe",
"lastName": "Doe",
"username": "john_doe",
"createdAt": "2024-01-01T12:00:00Z",
"firstName": "John",
"updatedAt": "2024-01-01T12:00:00Z",
"externalId": "External_ID_123",
"dateOfBirth": "2010-07-01"
}
],
"pagination": {
"limit": 30,
"total": 300,
"offset": 100,
"nextCursor": "eyJsaW1pdCI6MSxiZWZvcmU6IiIsc29ydDpbWyJlbmREYXRlIiwiZGVzYyJdXX0=",
"previousCursor": "eyJsaW1pdCI6MSxiZWZvcmU6IiIsc29ydDpbWyJlbmREYXRlIiwiZGVzYyJdXX0="
}
}