Skip to content

Latest commit

 

History

History
51 lines (38 loc) · 1.64 KB

File metadata and controls

51 lines (38 loc) · 1.64 KB
page_title openai_project_group_roles Data Source - terraform-provider-openai
subcategory
description Use this data source to retrieve a list of all roles assigned to a specific group within an OpenAI project.

openai_project_group_roles (Data Source)

Use this data source to retrieve a list of all roles assigned to a specific group within an OpenAI project.

Example Usage

# List all project role assignments for a group
data "openai_project_group_roles" "engineering" {
  project_id = var.project_id
  group_id   = var.group_id
}

output "assigned_role_ids" {
  value = data.openai_project_group_roles.engineering.role_ids
}

Schema

Required

  • group_id (String) The ID of the group to retrieve role assignments for.
  • project_id (String) The ID of the project.

Read-Only

  • id (String) The ID of this resource.
  • role_assignments (Attributes List) List of role assignments for the group in the project. (see below for nested schema)
  • role_ids (List of String) List of role IDs assigned to the group in the project.

Nested Schema for role_assignments

Read-Only:

  • permissions (List of String) Permissions granted by the role.
  • predefined_role (Boolean) Whether the role is predefined and managed by OpenAI.
  • resource_type (String) Resource type the role is bound to.
  • role_description (String) The description of the role.
  • role_id (String) The ID of the role.
  • role_name (String) The name of the role.