Use the objects resource to configure user and user group permissions to objects such as assets, folders, and projects.
To configure permissions for an object, create an access control list (ACL) for each user or user group that might interact with the object. Each ACL specifies a user or user group and their access rights for the object.
For example, you want the NorthDevTeam and WestDevTeam user groups to have read/write access to the NorthwestAccounts project. You create an ACL to specify the NorthDevTeam's access rights to the NorthwestAccounts project, and then create an ACL to specify the WestDevTeam's access rights to the NorthwestAccounts project.
You can use the objects resource to perform the following tasks to manage permissions:
•Create ACLs for an object
•Update ACLs for an object
•Delete ACLs configured for an object
•Get permission details for a user or user group and an object
•Get your permission details for an object
Creating permissions
Create an access control list (ACL) for each user or user group and object pair.
POST request
To create an ACL, send a POST request using the following URI:
/public/core/v3/objects/<object ID/permissions
Include the following information:
Field
Type
Required
Description
principal
Object
Yes
Whether the ACL is defined for a user or user group and the name of the user or user group.
type
String
Yes
Include in principal object.
Use one of the following values:
- USER
- GROUP
name
String
Yes
Include in principal object.
Name of the object.
permissions
Object
Yes
Object permissions to assign to the user or group.
read
Boolean
Yes
Include in permissions object.
Whether to allow the user or group to view the object.
delete
Boolean
Yes
Include in permissions object.
Whether to allow the user or group to delete the object.
execute
Boolean
Yes
Include in permissions object.
Whether to allow the user to run the task.
changePermission
Boolean
Yes
Include in permissions object.
Whether to allow the user or group to change the permissions for the object.
POST response
If successful, returns the object with the details you included in the POST request plus the ACL ID.
POST example
To create user permissions for an object, you might send a request similar to the following example:
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:
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: