search cancel

Unable to get username of a resource using Clarity PPM REST API

book

Article ID: 258193

calendar_today

Updated On:

Products

Clarity PPM SaaS

Issue/Introduction

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: /resourceswe are getting all the resources. Is there a way to get username of the resources with this API?

Environment

Release : 16.0.2

Resolution

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)