Skip to main content

Get authorization for a resource action

Log in to add to favourites

Gets an authorization confirmation for the requested user, resource and action.

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

Parameters

NameParameter typeTypeFormatDescription
projectIdpathstringThe project identifier, e.g. "movieDb". Found in the project overview screen of the management console.
resourceTypepathstringThe type of resource to retrieve permissions for. Permitted values are:
resourceIdpathstringId of the resource to retrieve permissions for.
actionpathstringName of the action to check authorization for.
userIdquerystringThe optional id of the user to check authorization for.
languagequerystringLanguageCodeThe optional language code to check authorization for.

Example request

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

Response message

HTTP status codeReasonResponse model
200The action is authorizedAuthorized true
404Not authorized for actionError
500InternalServerErrorError

Example request

JSON
{
    "authorized": true
}

Still need help?

If you still need help after reading this article, don't hesitate to reach out to the Contensis community on Slack or raise a support ticket to get help from our team.
New support request