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. File Ingestion and Replication REST API
  7. Streaming Ingestion and Replication REST API
  8. Model Serve REST API
  9. RunAJob utility
  10. ParamSetCli utility
  11. REST API codes
  12. REST API resource quick references

REST API Reference

REST API Reference

Updating a role

Updating a role

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
You can't remove all of the privileges from a role. A role must have at least one privilege assigned to it.
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!