/scim3/Groups
Allows you to create a team, or get a list of teams, or roles and its members.
Prerequisite - x-csrf-token
You must get a x-csrf-token and include it in the header of every POST, PUT, PATCH or DELETE request.
For more information, see Valid CSRF Token.
GET /api/v1/scim3/Groups
Gets a list of teams or roles.
-
HTTP Headers:
-
Authorization: Bearer <access_token>
-
x-sap-sac-custom-auth: true
-
Optional: x-csrf-token: <fetch>
-
-
Parameters:
-
(Optional) sortBy: a user attribute to sort the results by. For example, team name.
-
(Optional) sortOrder: the order to used to display the results. Set to either ascending or descending. By default, an ascending sort order is used.
-
(Optional) startIndex: the index of the first user to fetch. For example, if the start index is set to 10, the tenth user will be the first user returned.
-
(Optional) count: the number of users to return on each page.
-
(Optional) filter=<attribute>: adds a filter to the request. See the group schema for available attributes. All operators are supported.
-
-
Request Body: None
Example 1:
GET request: <TENANT_URL>/api/v1/scim3/Groups?filter=urn:ietf:params:scim:schemas:extension:sap:2.0:Group:type eq "authorization”&displayName sw “Admin
|
Response |
Example 1 Response |
|---|---|
Format: application/json |
This request returns all roles on the tenant that start with Admin. {
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:ListResponse"
],
"totalResults": 1,
"startIndex": 1,
"itemsPerPage": 1,
"Resources": [
{
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:Group",
"urn:ietf:params:scim:schemas:extension:sap:2.0:Group"
],
"id": "bbfbffd4-05fd-4701-b8b7-f2cdf0565eba",
"meta": {
"resourceType": "Group",
"created": "2025-04-07T10:01:08.451Z",
"lastModified": "2025-04-07T10:01:08.451Z",
"location": "/api/v1/scim3/Groups/bbfbffd4-05fd-4701-b8b7-f2cdf0565eba"
},
"displayName": "Admin",
"members": [
{
"value": "6086f696-e8b2-4780-98e7-7cd196f9eb61",
"type": "User",
"display": "JACK SMITH",
"$ref": "/api/v1/scim3/Users/6086f696-e8b2-4780-98e7-7cd196f9eb61"
}
],
"urn:ietf:params:scim:schemas:extension:sap:2.0:Group": {
"supportedOperations": "readWrite",
"description": "Planning Administrator: Full Privileges",
"type": "authorization"
}
}
]
}
|
Example 2:
GET request: <TENANT_URL>/api/v1/scim3/Groups?filter=urn:ietf:params:scim:schemas:extension:sap:2.0:Group:type eq "UserGroup”&displayName sw “HRTeam”
|
Response |
Example 1 Response |
|---|---|
Format: application/json |
This request returns one team on the tenant that starts with HRTeam. {
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:ListResponse"
],
"totalResults": 11,
"startIndex": 1,
"itemsPerPage": 1,
"Resources": [
{
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:Group",
"urn:ietf:params:scim:schemas:extension:sap:2.0:Group"
],
"id": "4dcd36d6-8e79-4d08-94d5-ed4ba7949f47",
"meta": {
"resourceType": "Group",
"created": "2024-06-17T18:39:42.051Z",
"lastModified": "2024-06-17T18:39:42.051Z",
"location": "/api/v1/scim3/Groups/4dcd36d6-8e79-4d08-94d5-ed4ba7949f47"
},
"displayName": "HRTeam",
"members": [
{
"value": "34e4baed-9d9e-4192-a121-ba0857249976",
"type": "Group",
"display": "HRRole",
"$ref": "/api/v1/scim3/Groups/34e4baed-9d9e-4192-a121-ba0857249976"
},
{
"value": "6a20af18-721b-41b6-85a5-19083ca89ff8",
"type": "User",
"display": "JANE BROWN",
"$ref": "/api/v1/scim3/Users/6a20af18-721b-41b6-85a5-19083ca89ff8"
}
],
"urn:ietf:params:scim:schemas:extension:sap:2.0:Group": {
"supportedOperations": "readWrite",
"description": "HRTeam",
"type": "userGroup"
}
}
]
}
|
POST /api/v1/scim3/Groups
-
HTTP Headers:
-
Authorization: Bearer <access_token>
-
x-csrf-token: <csrf_token>
-
x-sap-sac-custom-auth: true
-
Optional: x-sap-sac-create-team-folder: true
-
-
Parameters: None
-
Request Body: Group Schema
The following example schema creates a new team:{ "schemas": [ "urn:ietf:params:scim:schemas:core:2.0:Group", "urn:ietf:params:scim:schemas:extension:sap:2.0:Group" ], "displayName": "FINANCETEAM", "members": [ { "value": "6d3b9a30-1c69-4882-9d0a-2191b6f5456e", "type": "Group", "display": "FinanceRole", "$ref": "/api/v1/scim3/Groups/6d3b9a30-1c69-4882-9d0a-2191b6f5456e" }, { "value": "c287dfe7-9384-4ba6-9b25-fad8e21188e7", "type": "User", "display": "JAMES BAKER", "$ref": "/api/v1/scim3/Users/c287dfe7-9384-4ba6-9b25-fad8e21188e7" } ], "urn:ietf:params:scim:schemas:extension:sap:2.0:Group": { "supportedOperations": "readWrite", "description": "FINANCE TEAM", "type": "userGroup" } }
|
Response |
Example Response |
|---|---|
Format: application/scim+json (Group Schema) |
{
{
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:Group",
"urn:ietf:params:scim:schemas:extension:sap:2.0:Group"
],
"id": "62fc8d5a-8a46-4c61-a3f3-5252a68d9704",
"meta": {
"resourceType": "Group",
"created": "2025-04-08T22:55:50.890Z",
"lastModified": "2025-04-08T22:55:50.890Z",
"location": "/api/v1/scim3/Groups/62fc8d5a-8a46-4c61-a3f3-5252a68d9704"
},
"displayName": "FINANCETEAM",
"members": [
{
"value": "6d3b9a30-1c69-4882-9d0a-2191b6f5456e",
"type": "Group",
"display": "FinanceRole",
"$ref": "/api/v1/scim3/Groups/6d3b9a30-1c69-4882-9d0a-2191b6f5456e"
},
{
"value": "c287dfe7-9384-4ba6-9b25-fad8e21188e7",
"type": "User",
"display": "JAMES BAKER",
"$ref": "/api/v1/scim3/Users/c287dfe7-9384-4ba6-9b25-fad8e21188e7"
}
],
"urn:ietf:params:scim:schemas:extension:sap:2.0:Group": {
"supportedOperations": "readWrite",
"description": "FINANCE TEAM",
"type": "userGroup"
}
}
|