# GroupRoleAssignment

> Resource GroupRoleAssignment in pulumi-teamcity.

<!-- Generated from the pulumi-teamcity SDK. -->

Resource GroupRoleAssignment in pulumi-teamcity.

Pulumi type: `teamcity:index/groupRoleAssignment:GroupRoleAssignment`.

`name` is the Pulumi resource name. Nested object fields are documented under that object. They are not arguments of this resource.

## Example

Only required arguments are set. A string in angle brackets stands in for that argument. Any other value is an option or example written in the SDK description.

```ts
import * as teamcity from "pulumi-teamcity"

const resource = new teamcity.GroupRoleAssignment("groupRoleAssignment", {
  groupId: "<groupId>",
  roleId: "<roleId>",
})
```

## Arguments

| Property  | Type     | Required | Description                                                                                                                                   |
| --------- | -------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| `groupId` | `string` | yes      | The ID or key of the group to assign the role to.                                                                                             |
| `roleId`  | `string` | yes      | The ID of the role to assign.                                                                                                                 |
| `scope`   | `string` | no       | The scope of the role assignment. Use 'g' for global scope or 'p:PROJECT_ID' for project-specific scope. Defaults to global if not specified. |

## Outputs

Computed outputs are produced by the provider. They are not constructor arguments.

| Property  | Type     | Computed | Description                                                                                                                                   |
| --------- | -------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| `groupId` | `string` | no       | The ID or key of the group to assign the role to.                                                                                             |
| `roleId`  | `string` | no       | The ID of the role to assign.                                                                                                                 |
| `scope`   | `string` | no       | The scope of the role assignment. Use 'g' for global scope or 'p:PROJECT_ID' for project-specific scope. Defaults to global if not specified. |
