Obtaining information about users from REST API
search cancel

Obtaining information about users from REST API

book

Article ID: 233697

calendar_today

Updated On:

Products

Clarity PPM On Premise

Issue/Introduction

How can the internal database ID be obtained from the Clarity username using REST API?

 

Cause

 

 

Resolution

A. Per the documentation, use any of the below to get the resource information.

GET https://<server>/ppm/rest/v1/resources
GET https://<server>/ppm/rest/v1/resources/5xxxxxxx

where 5xxxxxxx is the internal ID of the resource.

B. Filtering for the uniqueName will work, however it will need to be done with the Postman application.

GET <server>/ppm/rest/v1/resources?filter=(uniqueName= 'testuser') 
where testuser is the uniquename/username of the user.