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

Checking permissions

Checking permissions

You can send a request to check your access rights for a particular object or asset type. The response is based on the permissions and privileges for the user who started the current session.
You might want to check your access rights before you attempt to create an asset in a project or folder. If you don't have permissions for the project or folder, the value of "false" will show for each permission type.

GET request

To get your access rights for an object, send a GET request using the following URI:
/public/core/v3/objects/<object ID>/permissions/checkAccess
The response includes your access rights for the given object ID.
To find out if you can create a particular type of asset in a project or folder, send a GET request that includes the project or folder ID and the asset type. Use the following URI:
/public/core/v3/objects/<object ID>/permissions/checkAccess?type=<asset type>
For a list of asset types, see Finding an asset.

GET examples

To check your access rights for an object, you might send a request similar to the following example:
GET <baseApiUrl>/public/core/v3/objects/2ymkhUZCl7XbUmN7dsq6Wc/permissions/checkAccess
You might receive a response similar to the following example:
{ "permissions": { "create": true, "read": true, "update": true, "delete": true, "execute": false, "changePermission": true } }
To see if you have permissions to create a
Data Integration
mapping in a project, you might send a request similar to the following example:
GET <baseApiUrl>/public/core/v3/objects/2ymkhUZCl7XbUmN7dsq6Wc/permissions/checkAccess?type=DTEMPLATE
You might receive a response similar to the following example:
{ "permissions": { "create": true, "read": true, "update": true, "delete": true, "execute": true, "changePermission": true } }

0 COMMENTS

We’d like to hear from you!