> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/powershell/it/powershell-commands/get-rdmroleassignment.md).

# Get-RDMRoleAssignment

Get-RDMRoleAssignment recupera le assegnazioni di ruoli amministrativi in uno spazio di lavoro di Remote Desktop Manager, facoltativamente filtrate per ruolo, ambito o principal.

### Sinossi

Recuperare le assegnazioni di ruoli amministrativi.

### Sintassi

#### Scope

```
Get-RDMRoleAssignment [-Role <PSAdministrativeRole>] [-ScopeType <AdministrativeRoleAssignmentScopeType>]
 [-ScopeID <guid>] [-ForcePromptAnswer <DialogResult[]>] [<CommonParameters>]
```

#### Utente

```
Get-RDMRoleAssignment -User <PSUserInfo> [-Role <PSAdministrativeRole>]
 [-ScopeType <AdministrativeRoleAssignmentScopeType>] [-ScopeID <guid>]
 [-ForcePromptAnswer <DialogResult[]>] [<CommonParameters>]
```

#### UserGroup

```
Get-RDMRoleAssignment -UserGroup <PSRoleInfo> [-Role <PSAdministrativeRole>]
 [-ScopeType <AdministrativeRoleAssignmentScopeType>] [-ScopeID <guid>]
 [-ForcePromptAnswer <DialogResult[]>] [<CommonParameters>]
```

#### ApplicationIdentity

```
Get-RDMRoleAssignment -ApplicationIdentity <PSApplicationIdentityInfo> [-Role <PSAdministrativeRole>]
 [-ScopeType <AdministrativeRoleAssignmentScopeType>] [-ScopeID <guid>]
 [-ForcePromptAnswer <DialogResult[]>] [<CommonParameters>]
```

### Descrizione

Recuperare i ruoli amministrativi che possiedono un'assegnazione in un ambito, ciascuno con i membri assegnati. Senza filtro, viene restituita ogni assegnazione dello spazio di lavoro, per ogni tipo di ambito.

### Esempi

#### Esempio 1

```powershell
PS C:\> Get-RDMRoleAssignment -ScopeType Repository -ScopeID $vault.ID
```

Recupera ogni ruolo assegnato su una cassaforte specifica.

#### Esempio 2

```powershell
PS C:\> Get-RDMRoleAssignment
```

Recupera ogni assegnazione di ruolo nello spazio di lavoro, per ogni tipo di ambito.

#### Esempio 3

```powershell
PS C:\> Get-RDMAdministrativeRole -Name "Vault Owner" | Get-RDMRoleAssignment
```

Recupera ogni ambito in cui è assegnato il ruolo 'Proprietario della cassaforte'.

#### Esempio 4

```powershell
PS C:\> Get-RDMRoleAssignment -User (Get-RDMUser -Name "jsmith")
```

Recupera ogni assegnazione posseduta da un utente.

### Parametri

#### -ApplicationIdentity

Identità applicazione su cui filtrare

```yaml
Type: RemoteDesktopManager.PowerShellModule.PSOutputObject.PSApplicationIdentityInfo
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ApplicationIdentity
  Position: Named
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

#### -ForcePromptAnswer

Opzione da usare con cautela. Risponderà automaticamente ai prompt che pongono domande sì/no, sì/no/annulla oppure ok/annulla. In caso di più prompt, è possibile passare più valori a questo parametro. Ecco i valori accettati:

* Yes: accetta il prompt. Copre i valori OK e Automatic.
* No: rifiuta il prompt sì/no/annulla. "Cancel" è l'opzione di ripiego se non è presente l'opzione "No".
* Cancel: annulla il prompt sì/no/annulla. "No" è l'opzione di ripiego se non è presente l'opzione "Cancel".

```yaml
Type: System.Windows.Forms.DialogResult[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

#### -Role

Ruolo amministrativo su cui filtrare

```yaml
Type: RemoteDesktopManager.PowerShellModule.PSOutputObject.PSAdministrativeRole
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Scope
  Position: 0
  IsRequired: false
  ValueFromPipeline: true
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: User
  Position: 0
  IsRequired: false
  ValueFromPipeline: true
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: UserGroup
  Position: 0
  IsRequired: false
  ValueFromPipeline: true
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: ApplicationIdentity
  Position: 0
  IsRequired: false
  ValueFromPipeline: true
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

#### -ScopeID

ID della risorsa di ambito su cui filtrare: un ID di cassaforte quando -ScopeType è Repository, un ID di gateway quando è Gateway, un ID di provider PAM quando è PamProvider oppure un ID di unità aziendale quando è OrganizationalUnit

```yaml
Type: System.Nullable`1[System.Guid]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

#### -ScopeType

Tipo di ambito su cui filtrare. Se omesso, vengono restituite le assegnazioni di ogni tipo di ambito

```yaml
Type: System.Nullable`1[Devolutions.RemoteDesktopManager.AdministrativeRoleAssignmentScopeType]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

#### -User

Utente su cui filtrare

```yaml
Type: RemoteDesktopManager.PowerShellModule.PSOutputObject.PSUserInfo
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: User
  Position: Named
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

#### -UserGroup

Gruppo di utenti su cui filtrare

```yaml
Type: RemoteDesktopManager.PowerShellModule.PSOutputObject.PSRoleInfo
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: UserGroup
  Position: Named
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

#### CommonParameters

Questo cmdlet supporta i parametri comuni: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction e -WarningVariable. Per maggiori informazioni, veda [about\_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).

### Input

#### RemoteDesktopManager.PowerShellModule.PSOutputObject.PSAdministrativeRole

Ruolo amministrativo su cui filtrare

### Output

#### RemoteDesktopManager.PowerShellModule.PSOutputObject.PSRoleAssignmentScope

### Note

Per maggiori informazioni, digiti "Get-Help Get-RDMRoleAssignment -detailed". Per informazioni tecniche, digiti "Get-Help Get-RDMRoleAssignment -full".


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.devolutions.net/powershell/it/powershell-commands/get-rdmroleassignment.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
