Sample - GitHub REST API
GET/orgs/{org}/actions/oidc/customization/sub

Get the customization template for an OIDC subject claim for an organization

Gets the customization template for an OpenID Connect (OIDC) subject claim.

OAuth app tokens and personal access tokens (classic) need the read:org scope to use this endpoint.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

1 parameter
orgstringrequired
The organization name. The name is not case sensitive.

1 status code
200A JSON serialized template for OIDC subject claim customization
include_claim_keysarray<string>required
Array of unique strings. Each claim key can only contain alphanumeric characters and underscores.
use_immutable_subjectbooleanoptional
Whether to opt in to the immutable OIDC subject claim format for the organization. When `true`, new OIDC tokens will use a stable, repository-ID-based `sub` claim instead of the name-based format.