# UserRoleAssignment

> Resource UserRoleAssignment in pulumi-teamcity.

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

Resource UserRoleAssignment in pulumi-teamcity.

Pulumi type: `teamcity:index/userRoleAssignment:UserRoleAssignment`.

`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.UserRoleAssignment("userRoleAssignment", {
  roleId: "<roleId>",
})
```

## Arguments

| Property   | Type     | Required | Description                                                                                                                                   |
| ---------- | -------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| `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. |
| `userId`   | `string` | no       | The ID of the user to assign the role to. Either `userId` or username must be specified.                                                      |
| `username` | `string` | no       | The username of the user to assign the role to. Either `userId` or username must be specified.                                                |

## Outputs

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

| Property   | Type     | Computed | Description                                                                                                                                   |
| ---------- | -------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| `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. |
| `userId`   | `string` | no       | The ID of the user to assign the role to. Either `userId` or username must be specified.                                                      |
| `username` | `string` | no       | The username of the user to assign the role to. Either `userId` or username must be specified.                                                |
