< Back
Remove-PartnerCustomerUser
Post
NAME Remove-PartnerCustomerUser
SYNOPSIS
Removes a user from the customer's tenant.
SYNTAX
Remove-PartnerCustomerUser [-CustomerId] <String> -UserId <String> [-Confirm] [-WhatIf] [<CommonParameters>]
Remove-PartnerCustomerUser [-CustomerId] <String> -UserPrincipalName <String> [-Confirm] [-WhatIf]
[<CommonParameters>]
DESCRIPTION
The Remove-PartnerCustomerUser cmdlet removes the specified user from the customer tenant.
PARAMETERS
-CustomerId <String>
Identifier for the customer.
Required? true
Position? 0
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-UserId <String>
Identifier for the user.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-UserPrincipalName <String>
Identifier for the customer.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Prompts you for confirmation before running the cmdlet.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
OUTPUTS
System.Boolean
NOTES
-------------------------- Example 1 --------------------------
PS C:\\> Remove-PartnerCustomerUser -CustomerId db8ea5b4-a69b-45f3-abd3-dca19e87c536 -UserPrincipalName
"hugh@wingtiptoys.onmicrosoft.com"
Removes the customer user with the User Principal Name of Hugh@wingtiptoys.onmicrosoft.com
-------------------------- Example 2 --------------------------
PS C:\\> Remove-PartnerCustomerUser -CustomerId db8ea5b4-a69b-45f3-abd3-dca19e87c536 -UserId
Removes the customer user with the User identifier of 6e668259-1f09-479d-bcb8-d9b03e826b8d
RELATED LINKS
Online Version: https://docs.microsoft.com/powershell/m ... stomerUser
SYNOPSIS
Removes a user from the customer's tenant.
SYNTAX
Remove-PartnerCustomerUser [-CustomerId] <String> -UserId <String> [-Confirm] [-WhatIf] [<CommonParameters>]
Remove-PartnerCustomerUser [-CustomerId] <String> -UserPrincipalName <String> [-Confirm] [-WhatIf]
[<CommonParameters>]
DESCRIPTION
The Remove-PartnerCustomerUser cmdlet removes the specified user from the customer tenant.
PARAMETERS
-CustomerId <String>
Identifier for the customer.
Required? true
Position? 0
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-UserId <String>
Identifier for the user.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-UserPrincipalName <String>
Identifier for the customer.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Prompts you for confirmation before running the cmdlet.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
OUTPUTS
System.Boolean
NOTES
-------------------------- Example 1 --------------------------
PS C:\\> Remove-PartnerCustomerUser -CustomerId db8ea5b4-a69b-45f3-abd3-dca19e87c536 -UserPrincipalName
"hugh@wingtiptoys.onmicrosoft.com"
Removes the customer user with the User Principal Name of Hugh@wingtiptoys.onmicrosoft.com
-------------------------- Example 2 --------------------------
PS C:\\> Remove-PartnerCustomerUser -CustomerId db8ea5b4-a69b-45f3-abd3-dca19e87c536 -UserId
Removes the customer user with the User identifier of 6e668259-1f09-479d-bcb8-d9b03e826b8d
RELATED LINKS
Online Version: https://docs.microsoft.com/powershell/m ... stomerUser