Rest API How to Retrieve and Create Users (Resources)
search cancel

Rest API How to Retrieve and Create Users (Resources)

book

Article ID: 256055

calendar_today

Updated On:

Products

Clarity PPM SaaS Clarity PPM On Premise

Issue/Introduction

How can resources be added to the Classic Home and Administration and Modern with REST API?

 

Environment

Release : 16.1.0

Resolution

Review REST API documentation with /niku/rest/describe/index.html

Under 'Other Resources', users(resources) can be retrieved and created with GET / POST call.


           

/ppm/rest/v1/users
/ppm/rest/v1/resources

Example body can be used:

POST 
/ppm/rest/v1/users

{
  "lastName": "Smith",
  "secondaryEmail": "[email protected]",
  "forcePwdChange": "false",
  "isLdap": "false",
  "email": "[email protected]",
  "resourceName": "resourcetest1",
  "userName": "resourcetest1",
  "firstName": "Andy",
  "language": {
        "displayValue": "English",
        "_type": "lookup",
        "id": "1"
    }
}

To filter for the username which is not case-sensitive:

/ppm/rest/v1/users?filter=((userName startsWith '%[email protected]'))

 

Additional Information

Starting in 16.1.1, be sure to provide the rights desired/needed:
Administration - Users - Navigate
Relevant *resources* rights