Unify and manage your data

Get segment or folder permissions

Learn more about getting the access control list for a segment or folder.

The Get segment or folder permissions retrieves the role-based access control list (ACL) for a segment or folder. The ACL maps role names to an access level (READ or WRITE). WRITE includes READ. If the segment or folder has no ACL, the response returns an empty object.

HTTP method and endpoint

Use the following HTTP method and endpoint path to get the permissions for a segment or folder.

GET {envUri}/reltio/api/{tenantId}/segments/{id}/_permissions

The following table describes the endpoint path parameters.

ParameterTypeRequiredDescription
tenantIdStringYesUnique identifier of the tenant.
idStringYesUnique identifier of the segment or folder.

Request headers

The following request headers must be included.

HeaderValueRequired
AuthorizationBearer <access_token>Yes

Request body

This operation does not require a request body.

Example request

Use the following example to get the permissions for a segment or folder.

GET {envUri}/reltio/api/{tenantId}/segments/{id}/_permissions

Response body

The following table describes the fields returned in the response body.

FieldTypeDescription
(root object)ObjectA map of role name to access level. Each key is a role name; each value is READ or WRITE. If the segment or folder has no ACL, the API returns {}..

Example response

The following example shows a response for a segment with a role-based ACL.

{
  "ROLE_SALES": "READ",
  "ROLE_MKT": "WRITE"
}

The following table lists the possible error responses returned by this API.

HTTP statusError codeDescriptionRecommended action
403 ForbiddenSEGMENT_FORBIDDENThe caller does not have READ access to the segment or folder, or to one of its ancestor folders.Request READ access from the segment or folder owner, or from a tenant admin.
404 Not FoundSEGMENT_NOT_FOUNDThe segment or folder with the specified ID does not exist.Verify the segment or folder ID, and then retry the request.