Skip to content

Latest commit

 

History

History
152 lines (104 loc) · 2.95 KB

Remove-TeamViewerUserFromRole.md

File metadata and controls

152 lines (104 loc) · 2.95 KB

external help file: TeamViewerPS-help.xml Module Name: TeamViewerPS online version: https://github.com/teamviewer/TeamViewerPS/blob/main/Docs/Help/Remove-TeamViewerUserFromRole.md schema: 2.0.0

Remove-TeamViewerUserFromRole

SYNOPSIS

Un-assigns one or many users from a role.

SYNTAX

All

Remove-TeamViewerUserFromRole [-APIToken] <SecureString> [-Role] <Object> [-User] <string[]> [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

Un-assigns one or many users from a role. A role belongs to the TeamViewer company associated with the API access token.

EXAMPLES

Example 1

Remove-TeamViewerUserFromRole -Role '9b465ea2-2f75-4101-a057-58a81ed0e57b' -User @('123', '456', '789')

Un-assigns users with id 123, 456, 789 from the role with id 9b465ea2-2f75-4101-a057-58a81ed0e57b.

Example 2

@('123', '456', '789') | Remove-TeamViewerUserFromRole -Role '9b465ea2-2f75-4101-a057-58a81ed0e57b'

Un-assigns users with id 123, 456, 789 from role with id 9b465ea2-2f75-4101-a057-58a81ed0e57b. Ids are passed as pipeline input.

Example 3

Remove-TeamViewerUserFromRole -Role '9b465ea2-2f75-4101-a057-58a81ed0e57b' -User 'u123'

Un-assigns a single user identified by the u-prefixed account Id from the role.

PARAMETERS

-APIToken

The TeamViewer API access token.

Type: SecureString
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Role

The role where users will be unassigned from.

Type: Object
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-User

Users to remove from a user role.

Type: Object[]
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

System.Object

System.string[]

An array of account Ids.

OUTPUTS

NOTES

RELATED LINKS