--- page_title: "ona_organization_role_assignment Resource - ona" subcategory: "Identity and Access" description: |- Ona organization-level role assignment for a group. The assignment targets the organization associated with the authenticated provider token. --- # ona_organization_role_assignment (Resource) Ona organization-level role assignment for a group. The assignment targets the organization associated with the authenticated provider token. For product context, see [Organization roles](https://ona.com/docs/ona/organizations/organization-roles) and [Manage groups](https://ona.com/docs/ona/organizations/groups). ## Example Usage ```terraform resource "ona_group" "terraform_admins" { name = "Terraform Admins" description = "Service accounts that administer Terraform-managed organization settings." } resource "ona_organization_role_assignment" "terraform_admin" { group_id = ona_group.terraform_admins.id role = "organization_admin" } ``` ## Schema ### Required - `group_id` (String) Group ID receiving the organization role. Changing this value replaces the assignment. - `role` (String) Organization role. Supported values are `organization_admin`, `runners_admin`, `projects_admin`, `automations_admin`, `groups_admin`, `environments_reader`, `insights_viewer`, `audit_log_reader`, and `billing_viewer`. Changing this value replaces the assignment. ### Read-Only - `id` (String) Role assignment 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_organization_role_assignment.terraform_admin 11111111-1111-4111-8111-111111111111/organization_admin ```