useGrant
Tenant provider policies

List all policies

Retrieve all policies for a tenant provider.

GET
/v1/tenants/{tenantId}/providers/{providerId}/policies

Authorization

AuthorizationRequiredBearer <token>

In: header

Path Parameters

tenantIdRequiredstring

Unique identifier for a tenant.

Format: "uuid"
tenantProviderIdRequiredstring

Unique identifier for a tenant provider.

Format: "uuid"
curl -X GET "https://sdk.usegrant.dev/v1/tenants/497f6eca-6276-4993-bfeb-53cbbbba6f08/providers/{providerId}/policies" \
  -H "Authorization: Bearer <token>"

Tenant provider policies retrieved successfully.

[
  {
    "id": "9b2e4d7a-8c3f-4b2a-9a1e-2d3c4e5f6a7b",
    "name": "Policy Name",
    "description": "Policy Description",
    "audience": "sts.amazonaws.com",
    "conditions": [
      {
        "key": "sub",
        "operator": "stringEquals",
        "value": "1234567890"
      }
    ]
  }
]