Get users by user name

get

/userManagement/v1/user

Get users by user name

Request

Query Parameters
  • only filter based on userName is supported
    Example:
    filter=userName eq "bjensen"

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

Success response from target IDM
Body ()
Root Schema : schema
Type: array
Show Source
Nested Schema : CompactUserDataObject
Type: object
UserName and ID fields
Show Source

400 Response

Unsupported Query Param OR Request.
Body ()
Root Schema : Error
Type: object
Used when an API throws an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx)
Show Source
Back to Top

Examples

The following example shows how to get all users by submitting a GET request on the REST resource using cURL.

Note:

Only the /?filter=userName eq "userNameToBeSearched" filter is supported by GET operation.

cURL Command

curl -H 'Authorization: Bearer <Token>' -X GET https://{FABRIC_HOST}/userManagement/v1/user?filter=userName eq "bjensen" -H "Content-Type: application/json" | json_pp

Example of Response Body

The following shows the contents of the response body in JSON format.

[
  {
    "id": "User_ID1",
    "userName": "bjensen@example.com"
  }
]
Back to Top