List users Run in API Explorer
Returns paginated users for an organization. Use startIndex
and count
query parameters to receive paginated results.
Sorting:
Sorting allows you to specify the order in which resources are returned by specifying a combination of sortBy
and sortOrder
query parameters.
The sortBy
parameter specifies the attribute whose value will be used to order the returned responses. The sortOrder
parameter defines the order in which the sortBy
parameter is applied. Allowed values are "ascending" and "descending".
Filtering:
You can request a subset of resources by specifying the filter
query parameter containing a filter expression. Attribute names and attribute operators used in filters are case insensitive. The filter parameter must contain at least one valid expression. Each expression must contain an attribute name followed by an attribute operator and an optional value.
Supported operators are listed below.
eq
equalne
not equalco
containssw
starts withand
Logical "and"or
Logical "or"not
"Not" function()
Precedence grouping
curl \
--request GET 'https://hub.docker.com/v2/scim/2.0/Users' \
--header "Authorization: Bearer $ACCESS_TOKEN"
{
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:ListResponse"
],
"totalResults": 1,
"startIndex": 1,
"itemsPerPage": 10,
"resources": [
{
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
],
"id": "d80f7c79-7730-49d8-9a41-7c42fb622d9c",
"userName": "jon.snow@docker.com",
"name": {
"givenName": "Jon",
"familyName": "Snow"
},
"displayName": "jonsnow",
"active": true,
"emails": [
{
"value": "jon.snow@docker.com",
"display": "jon.snow@docker.com",
"primary": true
}
],
"groups": [
{
"value": "nightswatch",
"display": "nightswatch"
}
],
"meta": {
"resourceType": "User",
"location": "https://hub.docker.com/v2/scim/2.0/Users/d80f7c79-7730-49d8-9a41-7c42fb622d9c",
"created": "2022-05-20T00:54:18Z",
"lastModified": "2022-05-20T00:54:18Z"
}
}
]
}
{
"status": "400",
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:Error"
],
"detail": "string",
"scimType": "string"
}
{
"status": "401",
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:Error"
],
"detail": "string"
}
{
"status": "403",
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:Error"
],
"detail": "string"
}
{
"status": "404",
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:Error"
],
"detail": "string"
}
{
"status": "500",
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:Error"
],
"detail": "string"
}