We are using the /resources/{resourcesInternalId} API to get a particular resource. But, we are not getting the username of a resource in the API response. Is there any other way to get the username of the resource?
With the help of this API: /resources, we are getting all the resources. Is there a way to get username of the resources with this API?
Release : 16.0.2
You can't get username via resources REST API call but you do get "uniqueName".
http://your_server:1610/ppm/rest/v1/resources/5004002
But you can get username when doing a REST API call to users.
http://your_server:1602/ppm/rest/v1/users/5004000
Example for active/inactive users.
--Active
http://your_server:port/ppm/rest/v1/users?filter=(status = 200)
--Inactive
http://your_server:port/ppm/rest/v1/users?filter=(status = 201)