Get User Attributes
To get the authenticated user's attributes, the client must send a GET request to: /aims/rs/scim/v2/Self.
The server returns the authenticated user's attributes by using the ID in the authentication context.
The possible HTTP status codes returned are:
-
200: OK
-
400: Bad Request
-
401: Unauthorized
-
403: Forbidden
Example request:
GET /aims/rs/scim/v2/Self
Host: cms.mycompany.com
Authorization: Bearer h480djs93hd8
Example response:
HTTP/1.1 200
{
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
],
"id": "1c442530-cdce-be45-8002-d6ddfb6c24d6",
"meta": {
"created": "2024-09-26T07:00:50.606Z",
"lastModified": "2024-09-26T07:00:50.606Z",
"resourceType": "User",
"location": "https://hostname/aims/rs/scim/v2/Users/1c442530-cdce-be45-8002-d6ddfb6c24d6"
},
"userName": "JDoe",
"name": {
"familyName": "Doe",
"givenName": "John"
},
"displayName": "John Doe",
"userType": "ldap",
"active": true,
"emails": [
{
"value": "jdoe@mail.com",
"empty": false
}
],
"groups": [
{
"type": "indirect",
"display": "Contractors",
"value": "2",
"ref": "https://hostname/aims/rs/scim/v2/Groups/2",
"empty": false
}
]
}