Remove-SCSpfTenantUserRole

Removes one or more tenant user roles.

Syntax

Remove-SCSpfTenantUserRole [-Confirm] -UserRole <Role[]> [-WhatIf] [<CommonParameters>]

Description

The Remove-SCSPFTenantUserRole cmdlet removes one or more tenant user roles from the Service Provider Foundation database.

Examples

Example 1: Remove a tenant user role

PS C:\>$TenantUserRole = Get-SCSPFTenantUserRole -ID 9adb708d-f47e-4dda-9e56-91e1eb2808df
PS C:\> Remove-SCSPFTenantUserRole -UserRole $TenantUserRole

The first command gets the tenant user role by its ID and stores the object in the $TenantUserRole variable.

The second command removes the tenant user role.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-UserRole

Specifies the name of one or more tenant user roles. To obtain a tenant user role, use the Get-SCSPFTenantUserRole cmdlet.

Type:Role[]
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
Aliases:wi
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False