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:
booleanIf 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
- actions
-
Type:
arrayactionsAdditional Properties Allowed:Array of roles assigned to this profile. - active
-
Type:
booleanTrue if the user is active; false if the user is deactivated. -
Type:
stringEmail address and login name of the profile. - firstName
-
Type:
stringFirst name of the profile. - id
-
Type:
stringID of this profile. - lastName
-
Type:
stringLast name of user. - registrationDate
-
Type:
stringUser's registration date. - roles
-
Type:
arrayrolesAdditional Properties Allowed:Array of roles assigned to this profile. - tourComplete
-
Type:
booleanTrue if the user has completed the walk-through tour of the admin product.
Nested Schema : actions
Nested Schema : roles
Nested Schema : items
Type:
object- repositoryId
-
Type:
stringRepository ID of role.
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- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - errors
-
Type:
arrayerrorsAdditional Properties Allowed:An optional list of errors if multiple errors were encountered - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code - type
-
Type:
stringThe URI to the HTTP state code definition
Nested Schema : errors
Nested Schema : items
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code
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"
}