Skip to main content

Get authorization for a resource type action

Log in to add to favourites

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

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

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:
actionpathstringName of the action to check authorization for. The possible actions are:
userIdquerystringThe optional id of the user to check authorization for.

Example request

JSON
GET: /api/management/projects/movieDb/security/permissions/webhookSubscriptions/actions/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