Create a new user
post
https://EM_HOST:EM_CONSOLE_HTTPS_PORT/em/api/users
The API creates a new user.
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Root Schema : schema
Type:
objectInput for creating a new User
Show Source
-
expirePasswordNow: boolean
Flag to say whether User password should expire now, so that new password will be requested when the User login next timeExample:
true -
externalId: string
Minimum Length:
0Maximum Length:256External User Name of the User as mentioned in Identity Provider like LDAPExample:CLOUD_ADMIN -
name(required): string
Minimum Length:
1Maximum Length:256Name of the new UserExample:CLOUD_ADMIN -
password(required): string
(password)
Password for the UserExample:
userPasscode123$ -
privilegeGrants: array
privilegeGrants
List of Privilege to be given to the User
-
roleGrants: array
roleGrants
List of Roles to be granted to the User
Match All
Input for creating a new User
Show Source
-
object
UserCommonDetails
It represents some information of a User
Nested Schema : privilegeGrants
Type:
arrayList of Privilege to be given to the User
Show Source
-
Array of:
object PrivilegeGrantDetails
Privilege Grant details for createing/modifying a User or a Role
Nested Schema : roleGrants
Type:
arrayList of Roles to be granted to the User
Show Source
-
Array of:
object RoleGrantSummary
Info about Role granted to a User or to an another Role
Nested Schema : UserCommonDetails
Type:
objectIt represents some information of a User
Show Source
-
authenticationType: array
authenticationType
Authentication Type of the User
-
contact: string
Minimum Length:
0Maximum Length:128Contact Number of a UserExample:21212221212 -
costCenter: string
Minimum Length:
0Maximum Length:1024Cost Center of a UserExample:TestCostCenter -
department: string
Minimum Length:
0Maximum Length:1024Department of a UserExample:HumanResource -
description: string
Minimum Length:
0Maximum Length:4000Description about a UserExample:This user is a Test User -
emails: string
Minimum Length:
0Maximum Length:128Email ids of a User with comma as a separator. Each email can have max length of 128 letters.Example:test@oracle.com,abc@oracle.com -
isPasswordChangeAllowed: boolean
Flag to say whether User is allowed to change his/her own passwordExample:
true -
lineOfBusiness: string
Minimum Length:
0Maximum Length:1024Line-Of-Business of a UserExample:TestBusiness -
location: string
Minimum Length:
0Maximum Length:1024Location of a UserExample:Bangalore -
passwordProfile: string
Name of Password ProfileExample:
MGMT_ADMIN_USER_PROFILE
Nested Schema : PrivilegeGrantDetails
Type:
objectPrivilege Grant details for createing/modifying a User or a Role
Show Source
-
name: string
Name of a PrivilegeExample:
VIEW_TARGET -
secureResources: array
secureResources
List of SecureResources on which the Privilege is applicable
Nested Schema : secureResources
Type:
arrayList of SecureResources on which the Privilege is applicable
Show Source
-
Array of:
object SecureResourceDetails
It represents Secure Resource details for creating/modifying a User or a Role.
Nested Schema : SecureResourceDetails
Type:
objectIt represents Secure Resource details for creating/modifying a User or a Role.
Show Source
-
id: string
Id of the ResourceExample:
DE5CD14CE9D0C0EBEFFFDDEBAA83DA33 -
propagationPolicy: array
propagationPolicy
Scope where the privilege is applicable to. This is applicable only for Secure Resource Type called TARGET.
Nested Schema : propagationPolicy
Type:
arrayScope where the privilege is applicable to. This is applicable only for Secure Resource Type called TARGET.
Show Source
-
Array of:
string
Allowed Values:
[ "ALL", "SELF", "MEMBERS" ]This gives type where a privilege is applicable to which part of composite resource. - ALL means the privilege is given for composite resource and its members. - SELF means the privilege is given only for composite resource. - MEMBERS means the privilege is given only for members of composite resource.
Example:
MEMBERSNested Schema : RoleGrantSummary
Type:
objectInfo about Role granted to a User or to an another Role
Show Source
-
description: string
Read Only:
trueDescription about the RoleExample:This Role is an Test Role -
id: string
Read Only:
trueUnique identifier for a Role GrantExample:B0F9D83F6E313B03E0537013790ACA39 -
isPrivate: boolean
Read Only:
trueFlag says whether grant Role is a private role or not.Example:true -
isWithAdmin: boolean
Read Only:
trueFlag says whether Private Role is granted as WITH_ADMIN, This is shown if the Role is a private roleExample:true -
links: object
links
Read Only:
trueThe Role related links -
name: string
Name of a RoleExample:
EM_ALL_ADMINISTRATOR -
owner: string
Read Only:
trueOwner / Creator of the RoleExample:SYSMAN -
type: string
Read Only:
trueType of Role like EM Role, Oracle Defined Role, External RoleExample:Oracle Defined Role
Nested Schema : links
Type:
objectRead Only:
trueThe Role related links
Show Source
-
roleLink: object
Link
A link referencing a REST API.
Nested Schema : authenticationType
Type:
arrayAuthentication Type of the User
Show Source
-
Array of:
string
Allowed Values:
[ "Repository", "SSO", "Enterprise" ]This is the representation of Authentication type of User.
Example:
RepositoryResponse
Supported Media Types
- application/json
201 Response
User created successfully
Headers
-
Location:
URL to get the User which got created.
Root Schema : User
Type:
objectThis is the representation of a User.
Show Source
-
privilegeGrants: array
privilegeGrants
List of Privileges to be given to the User
-
roleGrants: array
roleGrants
List of Roles to be granted to the User
Match All
This is the representation of a User.
Show Source
-
object
allOf
UserDetails
This is the representation of a User.
Nested Schema : privilegeGrants
Type:
arrayList of Privileges to be given to the User
Show Source
-
Array of:
object PrivilegeGrantSummary
Privilege Grant to a User or to a Role
Nested Schema : roleGrants
Type:
arrayList of Roles to be granted to the User
Show Source
-
Array of:
object RoleGrantSummary
Info about Role granted to a User or to an another Role
Nested Schema : UserDetails
Type:
objectThis is the representation of a User.
Show Source
-
category: string
User category like Administrator / Super Administrator / Repository OwnerExample:
Super Administrator -
externalId: string
External User Name of the User as mentioned in Identity Provider (like LDAP)Example:
CLOUD_MANAGER -
id: string
Unique identifier for a UserExample:
B0FBBE587FD201E2E0537013790A7D03 -
isLocked: boolean
Flag that says whether the User is locked or notExample:
false -
lifecycleStatus: string
User is Active status or BeingDeleted statusExample:
Active -
links: object
links
the User related links
-
name: string
Name for a UserExample:
CLOUD_MANAGER
Match All
This is the representation of a User.
Show Source
-
object
UserCommonDetails
It represents some information of a User
Nested Schema : UserCommonDetails
Type:
objectIt represents some information of a User
Show Source
-
authenticationType: array
authenticationType
Authentication Type of the User
-
contact: string
Minimum Length:
0Maximum Length:128Contact Number of a UserExample:21212221212 -
costCenter: string
Minimum Length:
0Maximum Length:1024Cost Center of a UserExample:TestCostCenter -
department: string
Minimum Length:
0Maximum Length:1024Department of a UserExample:HumanResource -
description: string
Minimum Length:
0Maximum Length:4000Description about a UserExample:This user is a Test User -
emails: string
Minimum Length:
0Maximum Length:128Email ids of a User with comma as a separator. Each email can have max length of 128 letters.Example:test@oracle.com,abc@oracle.com -
isPasswordChangeAllowed: boolean
Flag to say whether User is allowed to change his/her own passwordExample:
true -
lineOfBusiness: string
Minimum Length:
0Maximum Length:1024Line-Of-Business of a UserExample:TestBusiness -
location: string
Minimum Length:
0Maximum Length:1024Location of a UserExample:Bangalore -
passwordProfile: string
Name of Password ProfileExample:
MGMT_ADMIN_USER_PROFILE
Nested Schema : PrivilegeGrantSummary
Type:
objectPrivilege Grant to a User or to a Role
Show Source
-
description: string
Read Only:
trueDescription about the PrivilegeExample:Ability to view Jobs -
displayName: string
Read Only:
trueDisplay name of the PrivilegeExample:View Report -
links: object
links
links related to the privilege grant
-
name: string
Name of a PrivilegeExample:
VIEW_TARGET -
scope: array
scope
Read Only:
trueScope of the Privilege -
secureResourceType: string
Read Only:
trueSecureResource Type of the PrivilegeExample:JOB
Nested Schema : links
Type:
objectlinks related to the privilege grant
Show Source
-
privilege: object
Link
A link referencing a REST API.
-
secureResources: object
Link
A link referencing a REST API.
Nested Schema : scope
Type:
arrayRead Only:
trueScope of the Privilege
Show Source
-
Array of:
string
Allowed Values:
[ "INSTANCE", "CLASS", "SYSTEM", "SET" ]This is the representation of scopes of privileges.
Example:
INSTANCENested Schema : RoleGrantSummary
Type:
objectInfo about Role granted to a User or to an another Role
Show Source
-
description: string
Read Only:
trueDescription about the RoleExample:This Role is an Test Role -
id: string
Read Only:
trueUnique identifier for a Role GrantExample:B0F9D83F6E313B03E0537013790ACA39 -
isPrivate: boolean
Read Only:
trueFlag says whether grant Role is a private role or not.Example:true -
isWithAdmin: boolean
Read Only:
trueFlag says whether Private Role is granted as WITH_ADMIN, This is shown if the Role is a private roleExample:true -
links: object
links
Read Only:
trueThe Role related links -
name: string
Name of a RoleExample:
EM_ALL_ADMINISTRATOR -
owner: string
Read Only:
trueOwner / Creator of the RoleExample:SYSMAN -
type: string
Read Only:
trueType of Role like EM Role, Oracle Defined Role, External RoleExample:Oracle Defined Role
Nested Schema : links
Type:
objectRead Only:
trueThe Role related links
Show Source
-
roleLink: object
Link
A link referencing a REST API.
Nested Schema : authenticationType
Type:
arrayAuthentication Type of the User
Show Source
-
Array of:
string
Allowed Values:
[ "Repository", "SSO", "Enterprise" ]This is the representation of Authentication type of User.
Example:
Repository400 Response
Bad Request
Root Schema : ErrorResponse
Type:
objectResponse sent back in the case of an error.
Show Source
-
code: string
Status code of the error.Example:
IllegalArgument -
message: string
A descriptive error message.Example:
argument given is not supported
401 Response
Unauthorized
Root Schema : ErrorResponse
Type:
objectResponse sent back in the case of an error.
Show Source
-
code: string
Status code of the error.Example:
IllegalArgument -
message: string
A descriptive error message.Example:
argument given is not supported
403 Response
Forbidden
Root Schema : MissingPrivErrorResponse
Type:
objectResponse sent back as an Error in case required privileges are missing
Show Source
-
missingPrivileges: array
missingPrivileges
Privileges which are missing due to that the Error is occurred. This will have privilege internal name and display name only in the Privilege object
Match All
Response sent back as an Error in case required privileges are missing
Show Source
-
object
ErrorResponse
Response sent back in the case of an error.
Nested Schema : missingPrivileges
Type:
arrayPrivileges which are missing due to that the Error is occurred. This will have privilege internal name and display name only in the Privilege object
Show Source
-
Array of:
object MissingPrivilegeSummary
It represents a Privilege which is missing on a Resource to view or manage it.
Nested Schema : ErrorResponse
Type:
objectResponse sent back in the case of an error.
Show Source
-
code: string
Status code of the error.Example:
IllegalArgument -
message: string
A descriptive error message.Example:
argument given is not supported
Nested Schema : MissingPrivilegeSummary
Type:
objectIt represents a Privilege which is missing on a Resource to view or manage it.
Show Source
-
displayName: string
Display Name of PrivilegeExample:
Manage -
name: string
Name of PrivilegeExample:
MANAGE_JOB
409 Response
Duplicate Resource
Root Schema : ErrorResponse
Type:
objectResponse sent back in the case of an error.
Show Source
-
code: string
Status code of the error.Example:
IllegalArgument -
message: string
A descriptive error message.Example:
argument given is not supported
500 Response
Internal Server Error
Root Schema : ErrorResponse
Type:
objectResponse sent back in the case of an error.
Show Source
-
code: string
Status code of the error.Example:
IllegalArgument -
message: string
A descriptive error message.Example:
argument given is not supported
503 Response
Service Unavailable
Root Schema : ErrorResponse
Type:
objectResponse sent back in the case of an error.
Show Source
-
code: string
Status code of the error.Example:
IllegalArgument -
message: string
A descriptive error message.Example:
argument given is not supported
Default Response
Unexpected Error
Root Schema : ErrorResponse
Type:
objectResponse sent back in the case of an error.
Show Source
-
code: string
Status code of the error.Example:
IllegalArgument -
message: string
A descriptive error message.Example:
argument given is not supported