Skip to main content

List Groups

Retrieve a list of Groups.

GET
/api/scim/v2/Groups

Headers

KeyValue
Acceptapplication/json
AuthorizationBearer <API Token>

Query parameters

ParameterTypeDescription
startIndex (optional)IntegerIndex of the first group to be returned
count (optional)IntegerNumber of groups to be returned

Example cURL

curl --location 'http://localhost:8080/api/scim/v2/Groups?startIndex=0&count=10' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX'

Responses

Status CodeDescriptionResponse
200List of groupsapplication/json
400Invalid Requestempty
401Unauthorizedempty
500Internal Server Errorempty

Sample response

200 : List of groups

{
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:ListResponse"
],
"startIndex": 1,
"totalResults": 3,
"itemsPerPage": 3,
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:Group"
],
"Resources": [
{
"id": "1234",
"displayName": "Administrators",
"members": [
{
"value": 1,
"display": "user1@example.com"
},
{
"value": 2,
"display": "user2@example.com"
}
],
"meta": {
"location": "http://localhost:8080/api/scim/v2/Groups/group-1",
"created": "2023-08-04T08:38:02.3732123Z"
}
},
{
"id": "345",
"displayName": "Developers",
"members": [
{
"value": 3,
"display": "user3@example.com"
}
],
"meta": {
"location": "http://localhost:8080/api/scim/v2/Groups/group-2",
"created": "2023-08-04T08:38:02.3732123Z"
}
},
{
"id": "487",
"displayName": "Testers",
"members": [
{
"value": 4,
"display": "user4@example.com"
},
{
"value": 5,
"display": "user5@example.com"
},
{
"value": 6,
"display": "user6@example.com"
}
],
"meta": {
"location": "http://localhost:8080/api/scim/v2/Groups/group-3",
"created": "2023-08-04T08:38:02.3732123Z"
}
}
]
}