/scim2/Users/<UUID>

Allows you to get user information, update a user, or delete a user.

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/scim2/Users/<UUID>

Gets information about the user specified by <UUID>.

  • HTTP Headers:

    • Authorization: Bearer <access_token>

    • x-sap-sac-custom-auth: true

    • Optional: x-csrf-token: <fetch>

  • Parameters:

    • id: <UUID>. You must use a user's UUID and not a user name.

  • Request Body: None

Example GET request: <TENANT_URL>/api/v1/scim2/Users/9be3326a-6c22-443d-9b50-f828521e31f4

Response

Example Response

  • 500: Internal server error

  • 404: Not Found

  • 403: Forbidden

  • 200: OK

Format: application/scim+json (User Schema)

{
    "schemas": [
        "urn:sap:params:scim:schemas:extension:sac:2.0:user-custom-parameters",
        "urn:ietf:params:scim:schemas:core:2.0:User"
    ],
    "id": "9be3326a-6c22-443d-9b50-f828521e31f4",
    "externalId": "12345",
    "meta": {
        "resourceType": "User",
        "created": "2022-04-28T22:31:23.753Z",
        "location": "/api/v1/scim2/Users/9be3326a-6c22-443d-9b50-f828521e31f4"
    },
    "userName": "Test",
    "name": {
        "familyName": "test",
        "givenName": "test",
        "formatted": "test"
    },
    "displayName": "test",
    "active": true,
    "emails": [
    {
        "value": "test@sap.com",
        "type": "work",
        "primary": true
    }
    ],
    "groups": [
    {
        "value": "9c270f91-2512-4fff-b74d-693599804c0a",
        "display": "AdminToolKit_Users_With_SAP_email",
        "type": "direct",
        "$ref": "/api/v1/scim2/Groups/9c270f91-2512-4fff-b74d-693599804c0a"
    }
    ],
    "roles": [
    {
        "value": "PROFILE:sap.epm:Admin",
        "display": "Admin",
    }
    ],
    "urn:sap:params:scim:schemas:extension:sac:2.0:user-custom-parameters": {
    "dataAccessLanguage": "en",
    "systemNotificationsEmailOptIn": true,
    "numberFormatting": "1,234.56",
    "idpUserId": "test@sap.com",
    "timeFormatting": "H:mm:ss",
    "isConcurrent": false,
    "dateFormatting": "MMM d, yyyy",
    "marketingEmailOptIn": false,
    "cleanUpNotificationsNumberOfDays": 0
    },
    "urn:ietf:params:scim:schemas:extension:sap:2.0:User": { 
        "userUuid": "108e42ab-b573-4c0d-23d8-da6978ac04x8"
    }
}

PUT /api/v1/scim2/Users/<UUID>

Rewrites the information related to the specified by <UUID>.

  • HTTP Headers:

    • Authorization: Bearer <access_token>

    • x-csrf-token: <csrf_token>

    • x-sap-sac-custom-auth: true

  • Parameters:

    • id: <UUID>. You must use a user's UUID and not a user name.

  • Request Body: User schema containing the information to update.

    For an example user schema see the POST request in /scim2/Users. For information on role assignment, see Assigning Roles to Users and Groups. For information on additional parameter options, see Optional User Parameters.

Response

Example Response

  • 500: Internal server error

  • 404: Not found

  • 403: Forbidden

  • 400: Bad request

  • 200: OK

Format: application/scim+json (User Schema)

See GET for an example response. The response should include updated user information.

PATCH /api/v1/scim2/Users/<UUID>

Updates a user with the submitted changes. Any properties not included in the user schema will remain unchanged.

  • HTTP Headers:

    • Authorization: Bearer <access_token>

    • x-csrf-token: <csrf_token>

    • x-sap-sac-custom-auth: true

  • Parameters:

    • id: <UUID>. You must use a user's UUID and not a user name.

  • Request Body: User schema containing the information to update. The operations that are permitted with PATCH are: add, replace, and remove.

    The following example adds a role to the specified user.
    {
        "schemas": [
            "urn:ietf:params:scim:api:messages:2.0:PatchOp"
        ],
        "Operations": [
        {
            "op": "add",
            "path": "roles",
            "value": [
            {
                "value": "PROFILE:sap.epm:BI_Content_Viewer",
                "display": "BI_Content_Viewer",
                "primary": true
            }
            ]
        }
        ]
    }
    

    For information on role assignment, see Assigning Roles to Users and Groups. For information on additional parameter options, see Optional User Parameters.

Response

Example Response

  • 500: Internal server error

  • 404: Not found

  • 403: Forbidden

  • 400: Bad request

  • 200: OK

Format: application/scim+json (User Schema)

See GET for an example response. The response should include updated user information.

DELETE /api/v1/scim/Users/<UUID>

Deletes the user specified by <UUID>.

When the user is deleted, the ownership of the user's files are transferred to the System Owner. The deleted user's public files will remain in the Public folder. Any private files will be moved to the System Owner's private folder.

  • HTTP Headers:

    • Authorization: Bearer <access_token>

    • x-csrf-token: <csrf_token>

    • x-sap-sac-custom-auth: true

  • Parameters:

    • id: <UUID>. You muse use a user's UUID and not a user name.

  • Request Body: None

Response

  • 500: Internal server error

  • 404: Not found

  • 403: Forbidden

  • 200: OK