List users for given search details
post
https://EM_HOST:EM_CONSOLE_HTTPS_PORT/em/api/users/actions/search
The API returns list of users for search details provided in the Request Body. Api returns the results ordered by name (ascending) by default. Search can be performed either by providing a list of user IDs or a privilege criteria (by a system privilege or an object privilege with a secure resource ID).
Request
Query Parameters
-
limit: integer
Minimum Value:
1
Maximum Value:2000
For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. The api will return no more than the number specified as limit, but might not return that exact number.Default Value:20
-
page: string
System generated page token of a page.
-
sort: string
The order of the result set with direction. Allowed sort field is name. Allowed directions are DESC and ASCExample:
name:DESC
Supported Media Types
- application/json
Root Schema : schema
Type:
object
Object for providing searching conditions for Users
Show Source
-
privilegeCriteria: object
UserSearchPrivilegeCriteria
Object for providing User search criteria based on a Privilege and a Secure Resource Id
-
userIds: array
userIds
list of User Ids
Nested Schema : UserSearchPrivilegeCriteria
Type:
object
Object for providing User search criteria based on a Privilege and a Secure Resource Id
Show Source
-
includeSuperAdmins: boolean
filter users include super admin or notExample:
false
-
privilegeName: string
Name of a PrivilegeExample:
EDITT_JOB
-
secureResourceId: string
Id of a Secure ResourceExample:
7A9DC0E23DFE8DFDE050590AC0EC2AD8
Nested Schema : userIds
Type:
array
list of User Ids
Show Source
Example:
[
"B0F9D83F6E313B03E0537013790ACA12",
"B129D83F6E313CD3E0589013790ACA39"
]
Examples
Back to Top
Response
Supported Media Types
- application/json
200 Response
Successfully returned list of Users for the search
Root Schema : UserCollection
Type:
object
This is the representation of list of Users.
Show Source
-
count(required): integer
The number of Users in this pageExample:
20
-
items(required): array
items
The list of users
-
links(required): object
links
Read Only:
true
The result set navigation links
Nested Schema : items
Type:
array
The list of users
Show Source
-
Array of:
object UserSummary
This is the representation of a User.
Nested Schema : links
Type:
object
Read Only:
true
The result set navigation links
Show Source
-
next: object
Link
Represents a link(could be self, previous or next)
-
previous: object
Link
Represents a link(could be self, previous or next)
-
self: object
Link
Represents a link(could be self, previous or next)
Nested Schema : UserSummary
Type:
object
This is the representation of a User.
Match All
Show Source
-
object
allOf
UserDetails
This is the representation of a User.
Nested Schema : UserDetails
Type:
object
This 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
Show Source
-
object
UserCommonDetails
It represents some information of a User
Nested Schema : UserCommonDetails
Type:
object
It represents some information of a User
Show Source
-
authenticationType: array
authenticationType
Authentication Type of the User
-
contact: string
Minimum Length:
0
Maximum Length:128
Contact Number of a UserExample:21212221212
-
costCenter: string
Minimum Length:
0
Maximum Length:1024
Cost Center of a UserExample:TestCostCenter
-
department: string
Minimum Length:
0
Maximum Length:1024
Department of a UserExample:HumanResource
-
description: string
Minimum Length:
0
Maximum Length:4000
Description about a UserExample:This user is a Test User
-
emails: string
Minimum Length:
0
Maximum Length:128
Email 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:
0
Maximum Length:1024
Line-Of-Business of a UserExample:TestBusiness
-
location: string
Minimum Length:
0
Maximum Length:1024
Location of a UserExample:Bangalore
-
passwordProfile: string
Name of Password ProfileExample:
MGMT_ADMIN_USER_PROFILE
Nested Schema : authenticationType
Type:
array
Authentication Type of the User
Show Source
-
Array of:
string
Allowed Values:
[ "Repository", "SSO", "Enterprise" ]
This is the representation of Authentication type of User.
Example:
Repository
Nested Schema : Link
Type:
object
Represents a link(could be self, previous or next)
Show Source
-
href: string
URL for LinkExample:
/em/api/<resources>?page=b2Zmc2V0OjA&limit=0
400 Response
Bad Request
Root Schema : ErrorResponse
Type:
object
Error response
Show Source
-
code(required): string
A short error code that defines the error, meant for programmatic parsing
-
message(required): string
A human-readable error string
401 Response
Unauthorized
Root Schema : ErrorResponse
Type:
object
Error response
Show Source
-
code(required): string
A short error code that defines the error, meant for programmatic parsing
-
message(required): string
A human-readable error string
403 Response
Forbidden
Root Schema : MissingPrivErrorResponse
Type:
object
Response 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
Show Source
-
object
ErrorResponse
Error response
Nested Schema : missingPrivileges
Type:
array
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
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:
object
Error response
Show Source
-
code(required): string
A short error code that defines the error, meant for programmatic parsing
-
message(required): string
A human-readable error string
Nested Schema : MissingPrivilegeSummary
Type:
object
It 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
500 Response
Internal Server Error
Root Schema : ErrorResponse
Type:
object
Error response
Show Source
-
code(required): string
A short error code that defines the error, meant for programmatic parsing
-
message(required): string
A human-readable error string
503 Response
Service Unavailable
Root Schema : ErrorResponse
Type:
object
Error response
Show Source
-
code(required): string
A short error code that defines the error, meant for programmatic parsing
-
message(required): string
A human-readable error string
Default Response
Unexpected Error
Root Schema : ErrorResponse
Type:
object
Error response
Show Source
-
code(required): string
A short error code that defines the error, meant for programmatic parsing
-
message(required): string
A human-readable error string