Skip to main content
GET
/
unified
/
iam
/
roles
List Roles
curl --request GET \
  --url https://api.stackone.com/unified/iam/roles \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'x-account-id: <x-account-id>'
{
  "next_page": "<string>",
  "next": "<string>",
  "data": [
    {
      "id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
      "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
      "name": "<string>",
      "description": "<string>",
      "type": {
        "value": "admin",
        "source_value": "<string>"
      },
      "policies": [
        {
          "id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
          "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
          "name": "Remote Contractor Policy",
          "permissions": [
            {
              "id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
              "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
              "name": "read:users",
              "type": {
                "value": "read_write",
                "source_value": "<string>"
              },
              "resources": [
                {
                  "id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
                  "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
                  "name": "Company History Records",
                  "location": "s3://bucket-name/folder-name",
                  "type": {
                    "value": "file",
                    "source_value": "<any>"
                  },
                  "description": "<string>",
                  "created_at": "2021-01-01T01:01:01.000Z",
                  "updated_at": "2021-01-01T01:01:01.000Z"
                }
              ],
              "description": "<string>",
              "created_at": "2021-01-01T01:01:01.000Z",
              "updated_at": "2021-01-01T01:01:01.000Z"
            }
          ],
          "description": "<string>",
          "created_at": "2021-01-01T01:01:01.000Z",
          "updated_at": "2021-01-01T01:01:01.000Z"
        }
      ],
      "created_at": "2021-01-01T01:01:01.000Z",
      "updated_at": "2021-01-01T01:01:01.000Z"
    }
  ],
  "raw": [
    {
      "method": "<string>",
      "url": "<string>",
      "body": "<string>",
      "response": {}
    }
  ]
}

Authorizations

Authorization
string
header
required

Headers

x-account-id
string
required

Query Parameters

raw
boolean | null
proxy
object | null
fields
string | null
Example:
filter
object | null
page
string | null
deprecated
page_size
string | null
next
string | null
updated_after
string<date-time> | null
deprecated
Example:
expand
string | null
Example:

Response

data
object[]
required
next_page
string | null
deprecated
next
string | null
raw
object[] | null