Prisma

Get effective permissions

Get computed effective permissions for a user within a scope.

GET
/api/v1/admin/role-assignments/{user_id}/effective-permissions

Authorization

AuthorizationBearer <token>

In: header

Path Parameters

user_id*User Id

User ID

Formatuuid

Query Parameters

scope_type*RoleScope

Scope type

Value in"organization" | "workspace"
scope_id*Scope Id

Scope ID

Formatuuid

Response Body

application/json

application/json

curl -X get "https://prisma.your-company.com/api/v1/admin/role-assignments/497f6eca-6276-4993-bfeb-53cbbbba6f08/effective-permissions?scope_type=organization&scope_id=497f6eca-6276-4993-bfeb-53cbbbba6f08"
{
  "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
  "scope_type": "organization",
  "scope_id": "5d3fe357-12dd-4f62-b004-6d1fb3b8454f",
  "roles": [
    "string"
  ],
  "permissions": [
    {
      "permission": "string",
      "source": "string",
      "inherited": true
    }
  ],
  "computed_at": "2019-08-24T14:15:22Z"
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}