GEThttps://api.spotinst.io/setup/user/permission?accountId={ACCOUNT_ID}

Get the permissions for all the users in the account.

URL Parameters

Parameter Type Description
ACCOUNT_ID * String

The Spotinst account ID

Example: act-1234cds
Request

Headers
Copied!
Downloaded!
{
    "Content-Type": "application/json",
    "Authorization": "Bearer ${token}"
}
Response - 200

Headers
Copied!
Downloaded!
{
    "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
  "items": [
    {
      "userId": "u-1234",
      "permissionStrategy": "ROLE_BASED",
      "role": "editor",
      "policyIds": []
    },
    {
      "userId": "u-1235",
      "permissionStrategy": "POLICY_BASED",
      "role": "viewer",
      "policyIds": []
    },
    {
      "userId": "u-1236",
      "permissionStrategy": "POLICY_BASED",
      "role": "editor",
      "policyIds": [
        "pol-ad613810"
      ]
    }
  ]
}