getAdminProfile
get
/ccadmin/v1/adminProfiles/{id}
Get Admin Profile. Returns an admin profile by id.
Request
Supported Media Types
- application/json
Path Parameters
-
id: string
ID of the user profile to get.
Query Parameters
-
expand(optional): string
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" ]
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : getAdminProfile_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 assigned to 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 assigned to 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",
"firstName":"Amber",
"external":false,
"tourComplete":true,
"createdBy":"admin",
"roles":[
{
"repositoryId":"adminRole"
}
],
"repositoryId":"iuser260015",
"registrationDate":"2014-09-24T12:00:00.000Z",
"active":true,
"id":"iuser260015",
"rolesLastModified":"2021-02-22T12:00:00.000Z",
"email":"admin@example.com"
}
Default Response
The error response.
The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud:
|Error Code|Description|
|------------------|------------------|
|22000|If the profile id passed is null or empty|
|22001|If there was any internal error while getting the profile|
|22002|If there was no profile found with the given id|
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