| 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. |
Use this data source to retrieve a list of all roles assigned to a specific group within an OpenAI project.
# 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
}group_id(String) The ID of the group to retrieve role assignments for.project_id(String) The ID of the project.
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.
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.