Prisma

List roles

List all roles for the organization.

GET
/api/v1/admin/platform-roles

Authorization

AuthorizationBearer <token>

In: header

Query Parameters

scope?|

Filter by scope

include_system?Include System

Include system roles

Defaulttrue

Response Body

application/json

application/json

curl -X get "https://prisma.your-company.com/api/v1/admin/platform-roles"
{
  "roles": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "name": "string",
      "display_name": "string",
      "description": "string",
      "scope": "organization",
      "hierarchy_value": 0,
      "is_system": true,
      "organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6",
      "parent_role_id": "7ea77ce3-4218-4d39-ad84-02444a2f4ee7",
      "created_at": "2019-08-24T14:15:22Z",
      "updated_at": "2019-08-24T14:15:22Z"
    }
  ],
  "total": 0
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}