--- page_title: "ona_oidc_config Resource - ona" subcategory: "Organization" description: |- Singleton Ona OIDC V3 token configuration for the organization associated with the configured provider token. Destroying this resource removes Terraform state only; it does not reset the remote organization setting. --- # ona_oidc_config (Resource) Singleton Ona OIDC V3 token configuration for the organization associated with the configured provider token. Destroying this resource removes Terraform state only; it does not reset the remote organization setting. For product context, see [OpenID Connect (OIDC)](https://ona.com/docs/ona/configuration/oidc). ## Example Usage ```terraform resource "ona_oidc_config" "org" { custom_claim_fields = [ "project_id", "creator_email", ] } ``` ## Schema ### Optional - `custom_claim_fields` (Set of String) Additional fields included in the OIDC V3 `sub` claim. Supported values are `creator_id`, `creator_principal`, `creator_email`, `creator_name`, `creator_idp`, `account_id`, `user_id`, `organization_id`, `project_id`, `runner_id`, `environment_id`, `email`, `name`, `idp`, `runner_name`, `service_account_id`, `environment_initializers.git.remote_uri`, `environment_initializers.git.upstream_remote_uri`, and `environment_initializers.context_url`. A field is included only for principal types that provide it. ### Read-Only - `id` (String) Terraform resource ID. This is the authenticated organization ID. ## Import Import is supported using the following syntax: The [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import) can be used, for example: ```shell #!/usr/bin/env sh terraform import ona_oidc_config.org current ```