/scim/Groups
Allows you to create a team or get a list of teams.
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/scim/Groups
Gets a list of teams.
-
HTTP Headers:
-
Authorization: Bearer <access_token>
-
x-sap-sac-custom-auth: true
-
Optional: x-csrf-token: <fetch>
-
-
Parameters:
-
<startIndex>: first index on the page
-
<count>: page size
-
-
Request Body: None
|
Response |
Example Response |
|---|---|
Format: application/json |
{
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:ListResponse"],
"totalResults": 123,
"itemsPerPage": 10,
"startIndex": 40,
"Resources": [{<Group Schema>}, ...]
}
|
POST /api/v1/scim/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 ] "id": "<Team_ID>", "displayName": "<Team_Diaplay_Name>", "members": [ { "value": "<User_Name>", } ], }For information on role assignment, see Assigning Roles to Users and Groups. For information on optional parameters see Optional User Parameters.
|
Response |
Example Response |
|---|---|
Format: application/scim+json (Group Schema) |
{
"id": "TestTeam",
"displayName": "Test Team",
"meta": {
"location": "/api/v1/scim/Groups/TestTeam ",
"resourceType": "Group"
},
"members": [
{
"type": "User",
"value": " TESTUSER ",
"$ref": "/api/v1/scim/Users/TESTUSER "
}
],
"roles": [
"PROFILE:sap.epm:Admin",
"PROFILE:sap.epm:Viewer"
]
}
}
|