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
  • 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
  • System generated page token of a page.
  • The order of the result set with direction. Allowed sort field is name. Allowed directions are DESC and ASC
    Example:
    name:DESC
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Object for providing searching conditions for Users
Show Source
Nested Schema : UserSearchPrivilegeCriteria
Type: object
Object for providing User search criteria based on a Privilege and a Secure Resource Id
Show Source
Nested Schema : userIds
Type: array
list of User Ids
Show Source
Example:
[
    "B0F9D83F6E313B03E0537013790ACA12",
    "B129D83F6E313CD3E0589013790ACA39"
]
Examples

Back to Top

Response

Supported Media Types

200 Response

Successfully returned list of Users for the search
Body ()
Root Schema : UserCollection
Type: object
This is the representation of list of Users.
Show Source
Nested Schema : items
Type: array
The list of users
Show Source
Nested Schema : UserSummary
Type: object
This is the representation of a User.
Match All
Show Source
Nested Schema : UserDetails
Type: object
This is the representation of a User.
Show Source
Match All
Show Source
Nested Schema : UserCommonDetails
Type: object
It represents some information of a User
Show Source
Nested Schema : authenticationType
Type: array
Authentication Type of the User
Show Source
  • Allowed Values: [ "Repository", "SSO", "Enterprise" ]
    This is the representation of Authentication type of User.
Example:
Repository

400 Response

Bad Request
Body ()
Root Schema : ErrorResponse
Type: object
Error response
Show Source

401 Response

Unauthorized
Body ()
Root Schema : ErrorResponse
Type: object
Error response
Show Source

403 Response

Forbidden
Body ()
Root Schema : MissingPrivErrorResponse
Type: object
Response sent back as an Error in case required privileges are missing
Show Source
Match All
Show Source
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
Nested Schema : ErrorResponse
Type: object
Error response
Show Source
Nested Schema : MissingPrivilegeSummary
Type: object
It represents a Privilege which is missing on a Resource to view or manage it.
Show Source

500 Response

Internal Server Error
Body ()
Root Schema : ErrorResponse
Type: object
Error response
Show Source

503 Response

Service Unavailable
Body ()
Root Schema : ErrorResponse
Type: object
Error response
Show Source

Default Response

Unexpected Error
Body ()
Root Schema : ErrorResponse
Type: object
Error response
Show Source
Back to Top