GET
/
v2
/
{subjectType}
/
{subjectId}
/
permissions
cURL
curl --request GET \
  --url https://api.eda.prisme.ai/v2/{subjectType}/{subjectId}/permissions \
  --header 'Authorization: Bearer <token>'
{
  "result": [
    {
      "target": {
        "id": "userId1"
      },
      "permissions": {
        "role": "admin"
      }
    },
    {
      "target": {
        "id": "userId2"
      },
      "permissions": {
        "policies": {
          "read": true
        }
      }
    },
    {
      "target": {
        "public": true
      },
      "permissions": {
        "policies": {
          "read": true
        }
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

subjectType
enum<string>
required

The target subject type

Available options:
pages,
workspaces
subjectId
string
required

The target subject id (i.e workspaceId if subjectType is 'workspace')

Response

200
application/json

Success Response

The response is of type object.