Get direct reportees of user based on user ID
get
/iam/governance/selfservice/api/v1/users/{uuid}/directs
Returns a list of all direct reportees of the specified user.
Request
Supported Media Types
- application/json
Path Parameters
-
uuid: string
Unique identifier of the user whose direct reportees are to be returned.
Response
Supported Media Types
- application/json
200 Response
Successful
Headers
-
ResponseTime: string
Captures the time in milliseconds taken for processing the request.
401 Response
Unauthorized
404 Response
Requested entity not found
500 Response
Internal Server Error
Examples
This example retrieves the direct reports for a given user.. The information shown here is against a pseudo system and serves as a prototype.
cURL Example
curl -H "Content-Type: application/json" -X GET -u username:password https://pseudo.com/iam/governance/selfservice/api/v1/users/1/directs
Example of GET Response Body
The following example shows the contents of the response body in JSON format.
{ "links": [ { "rel": "self", "href": "http://pseudo.com/iam/governance/selfservice/api/v1/users/1/directs" } ], "count": 10, "totalResult": -1, "users": [ { "links": [ { "rel": "self", "href": "http://pseudo.com/iam/governance/selfservice/api/v1/users/13013" } ], "id": "13013", "userLogin": "USERATTRSTEST27@PSEUDO.COM", "displayName": "UserAttrsTest27" }, { "links": [ { "rel": "self", "href": "http://pseudo.com/iam/governance/selfservice/api/v1/users/13012" } ], "id": "13012", "userLogin": "USERATTRSTEST26@PSEUDO.COM", "displayName": "UserAttrsTest26" }, { "links": [ { "rel": "self", "href": "http://pseudo.com/iam/governance/selfservice/api/v1/users/13005" } ], "id": "13005", "userLogin": "USERATTRSTEST25@PSEUDO.COM", "displayName": "UserAttrsTest25" }, { "links": [ { "rel": "self", "href": "http://pseudo.com/iam/governance,/selfservice/api/v1/users/13009" } ], "id": "13009", "userLogin": "USERATTRSTEST24@PSEUDO.COM", "displayName": "UserAttrsTest24" }, { "links": [ { "rel": "self", "href": "http://pseudo.com/iam/governance,/selfservice/api/v1/users/13011" } ], "id": "13011", "userLogin": "EUSERATTRSTEST25@PSEUDO.COM", "displayName": "UserAttrsTest25" }, { "links": [ { "rel": "self", "href": "http://pseudo.com/iam/governance/selfservice/api/v1/users/13008" } ], "id": "13008", "userLogin": "DUSERATTRSTEST25@PSEUDO.COM", "displayName": "UserAttrsTest25" }, { "links": [ { "rel": "self", "href": "http://pseudo.com/iam/governance/selfservice/api/v1/users/13007" } ], "id": "13007", "userLogin": "CUSERATTRSTEST25@PSEUDO.COM", "displayName": "UserAttrsTest25" }, { "links": [ { "rel": "self", "href": "http://pseudo.com/iam/governance/selfservice/api/v1/users/13006" } ], "id": "13006", "userLogin": "BUSERATTRSTEST25@PSEUDO.COM", "displayName": "UserAttrsTest25" }, { "links": [ { "rel": "self", "href": "http://pseudo.com/iam/governance/selfservice/api/v1/users/3010" } ], "id": "3010", "name": "Ashish", "userLogin": "ASHISH_KUMAR1", "displayName": "Ashish Kumar Updated DN" }, { "links": [ { "rel": "self", "href": "http://pseudo.com/iam/governance/selfservice/api/v1/users/7008" } ], "id": "7008", "name": "UpdatedFN", "userLogin": "7008", "displayName": "Base User1" } ] }