Skip to main content
GET /unified/iam/resource_types
Returns a list of resource type identifiers that this provider supports. Use these values as the resource_type query parameter when calling List Resource Users.
This endpoint is distinct from GET /unified/list_resource_types in the Permissions Check section. That endpoint returns types supported for permission checks; this one returns types for IAM resource-scoped queries. The valid values may overlap but serve different purposes.

Authentication

Requires Authorization: Basic {base64_encoded_api_key} and x-account-id: {account_id}. See authentication.

Response

Returns a JSON object with a data: string[] field containing resource type identifiers. The exact values vary by provider. Common examples include file, folder, channel, workspace, organization, and department.

Example

curl --request GET \
  --url 'https://api.stackone.com/unified/iam/resource_types' \
  --header 'accept: application/json' \
  --header 'authorization: Basic {base64_encoded_api_key}' \
  --header 'x-account-id: {account_id}'

Example Response

{
  "data": ["channel", "workspace"]
}

Errors

StatusMeaning
401Unauthorized — invalid or missing API key
422Provider does not support this endpoint