getCurrentAdminProfile
get
/ccadmin/v1/adminProfiles/current
Get Current Admin Profile. Get the current profile information.
Request
Supported Media Types
- application/json
Query Parameters
-
expand(optional): boolean
Expand query param: comma separated values that can be used to expand profile's roles and access rights information. Possible values for this query parameter are 'roles' and 'accessRights'Allowed Values:
[ "roles", "accessRights" ]
-
includeAllowedActions(optional): 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.
Root Schema : getCurrentAdminProfile_response
Type:
Show Source
object
-
accessRights(optional):
array accessRights
Access rights of the user
-
active(optional):
boolean
True if the user is active; false if the user is deactivated.
-
createdBy(optional):
string
ID of the user that created this profile
-
email(optional):
string
Email address and login name of the profile.
-
external(optional):
boolean
True if the user was created externally
-
firstName(optional):
string
First name of the profile.
-
id(optional):
string
ID of this profile.
-
lastName(optional):
string
Last name of the profile.
-
registrationDate(optional):
string
User's registration date.
-
repositoryId(optional):
string
Repository ID of this profile.
-
roles(optional):
array roles
Array of roles assigned to this profile.
-
rolesLastModified(optional):
string
Roles last modified timestamp.
-
tourComplete(optional):
boolean
True if the user has completed the walk-through tour of the admin product.
Nested Schema : items
Type:
Show Source
object
-
displayName(optional):
string
Display name of the access right.
-
id(optional):
string
ID of the access right.
-
repositoryId(optional):
string
Repository ID of the access right.
-
type(optional):
string
Type of the access right.
Nested Schema : items
Type:
Show Source
object
-
accessRights(optional):
array accessRights
Access rights of the role
-
category(optional):
array category
Category of the role
-
id(optional):
string
ID of the role.
-
name(optional):
string
Name of the role.
-
repositoryId(optional):
string
Repository ID of the role.
-
securityCriteria(optional):
array securityCriteria
Security criteria of the role
Nested Schema : items
Type:
Show Source
object
-
displayName(optional):
string
Display name of the access right.
-
id(optional):
string
ID of the access right.
-
repositoryId(optional):
string
Repository ID of the access right.
-
type(optional):
string
Type of the access right.
Nested Schema : items
Type:
Show Source
object
-
displayName(optional):
string
Display name of the role category.
-
id(optional):
string
ID of the role category.
-
repositoryId(optional):
string
Repository ID of the role category.
Nested Schema : items
Type:
Show Source
object
-
id(optional):
string
ID of the security criteria.
-
name(optional):
string
Name of the security criteria.
-
repositoryId(optional):
string
Repository ID of the security criteria.
Example Response (application/json)
{
"lastName":"Admin",
"tourComplete":true,
"roles":[
{
"repositoryId":"adminRole"
}
],
"active":true,
"firstName":"Amber",
"external":false,
"createdBy":"admin",
"repositoryId":"iuser260015",
"registrationDate":"2014-09-24T12:00:00.000Z",
"id":"iuser260015",
"rolesLastModified":"2021-02-22T12:00:00.000Z",
"actions":[
"worksetsAccess",
"publishingAccess",
"settingsTab",
"mediaTab",
"reportsTab"
],
"email":"admin@example.com"
}
Default Response
The error response
Root Schema : errorModel
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
errors(optional):
array errors
An optional list of errors if multiple errors were encountered
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code
-
type(optional):
string
The URI to the HTTP state code definition
Nested Schema : errors
Type:
array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code