external help file: TeamViewerPS-help.xml Module Name: TeamViewerPS online version: https://github.com/teamviewer/TeamViewerPS/blob/main/Docs/Help/Get-TeamViewerRole.md schema: 2.0.0
Lists all roles in a TeamViewer company.
Get-TeamViewerRole [-APIToken] <SecureString> [<CommonParameters>]Lists all roles in the TeamViewer company associated with the API access token.
Get-TeamViewerRoleLists all roles.
Get-TeamViewerRole | Where-Object { $_.Name -eq 'Administrator' }Lists only the role named 'Administrator'.
Get-TeamViewerRole | Select-Object -Property Name, IdLists all roles showing only their name and Id.
The TeamViewer API access token.
Type: SecureString
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
An array of TeamViewerPS.Role objects.