Table of Contents

Search

  1. Preface
  2. Informatica Intelligent Cloud Services REST API
  3. Platform REST API version 2 resources
  4. Platform REST API version 3 resources
  5. Data Integration REST API
  6. Mass Ingestion Files REST API
  7. Mass Ingestion Streaming REST API
  8. RunAJob utility
  9. ParamSetCli utility
  10. REST API codes
  11. REST API resource quick references

REST API Reference

REST API Reference

Updating roles

Updating roles

You can add or remove privileges for custom roles.

Add privileges

To add privileges to a custom role, send a PUT request using one of the following URIs:
/public/core/v3/roles/<role ID>/addPrivileges
/public/core/v3/roles/name/<role name>/addPrivileges
Include an array of privilege names for the custom role.
For example, to give a role create and delete privileges for data transfer tasks, you might use the following request:
PUT <baseApiUrl>/public/core/v3/roles/cPYWk02I4aBeuLEvYRtaMS/addPrivileges Content-Type: application/json Accept: application/json INFA-SESSION-ID: <sessionId> { "privileges" : ["create.data.transfer.task", "delete.data.transfer.task"] }
You can use the privileges resource to get a list of privilege names that you can use. For more information, see privileges.

Remove privileges

To remove privileges from a custom role, send a PUT request using one of the following URIs:
/public/core/v3/roles/<role ID>/removePrivileges
/public/core/v3/roles/name/<role name>/removePrivileges
Include an array of privilege names to remove for the custom role.
For example, to remove create and delete privileges for API collection from a role, you might use the following request:
PUT <baseApiUrl>/public/core/v3/roles/cPYWk053KnrUerLvYRtaMS/removePrivileges Content-Type: application/json Accept: application/json INFA-SESSION-ID: <sessionId> { "privileges" : ["create.api.collection", "delete.api.collection"] }

0 COMMENTS

We’d like to hear from you!