Skip to main content
Browse Documentation
HTTP - Management

Get permissions for a resource

Created by j.moore, last modified by a.turner on 08 Jul 2020

Gets a permission set for the requested user and resource. Requesting a permission set returns the positive permission values assigned to the user for all roles the user is assigned to (either directly or via a group).

GET/api/management/projects/{projectId}/security/permissions/{resourceType}/{resourceId?}?userId={userId}&language={language}

Parameters

NameParameter typeTypeFormatDescriptionExampleRequired
projectIdpathstringThe project identifier found in the project overview screen of the management consolemovieDbtrue
resourceTypepathstringThe type of resource to retrieve permissions for. Content types or entries.true
resourceIdpathstringOptional id of the resource to retrieve permissions for.false
userIdquerystringThe id of the user to retrieve permissions for.true
languagequerystringlanguageThe specified language for the node. If no value is provided then the project primary language is usedfalse

Example

GET: /api/management/projects/movieDb/security/permissions/entries/a65a9d9d-ee64-4c25-a80c-ab5aee00fb9d?userId=a.user

Responses

HTTP status codeReasonModel
200Success
404Entry not foundError
500Internal server errorError