getCurrentAdminProfile

get

/ccadmin/v1/adminProfiles/current

Get Current Admin Profile. Get the current profile information.

Request

Supported Media Types
  • application/json
Query Parameters
includeAllowedActions
Type: boolean
If we want allowed actions for user, then pass true for this variable

Response

Supported Media Types
  • application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : getCurrentAdminProfile_response
Nested Schema : actions
Type: array
Array of roles assigned to this profile.
Nested Schema : roles
Type: array
Array of roles assigned to this profile.
Nested Schema : items
Type: object
Example application/json

{
    "lastName":"Admin",
    "firstName":"Amber",
    "tourComplete":true,
    "roles":[
        {
            "repositoryId":"adminRole"
        }
    ],
    "registrationDate":"2014-09-24 13:50:00",
    "active":true,
    "id":"iuser260015",
    "actions":[
        "publishingTab",
        "settingsTab",
        "mediaTab",
        "reportsTab"
    ],
    "email":"admin@example.com"
}
Default Response
The error response
Body
Root Schema : errorModel
Type: object
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Nested Schema : items
Type: object

Examples

Sample Response Payload returned by endpoint:

{
  "lastName": "Admin",
  "firstName": "Amber",
  "tourComplete": true,
  "roles": [{"repositoryId": "adminRole"}],
  "registrationDate": "2014-09-24 13:50:00",
  "active": true,
  "id": "iuser260015",
  "actions": [
    "publishingTab",
    "settingsTab",
    "mediaTab",
    "reportsTab"
  ],
  "email": "admin@example.com"
}