Remove-EntraUserExtension

Removes a user extension.

Syntax

Remove-EntraUserExtension
      -ObjectId <String>
      -ExtensionNames <System.Collections.Generic.List`1[System.String]>
      [<CommonParameters>]
Remove-EntraUserExtension
      -ObjectId <String>
      -ExtensionName <String>
      [<CommonParameters>]

Description

The Remove-EntraUserExtension cmdlet removes a user extension from Microsoft Entra ID. Specify ObjectId and ExtensionNames parameters to remove a user extension.

Examples

Example 1: Remove the user extension

$Params = @{
    ObjectId = 'SawyerM@Contoso.com'
    ExtensionName = 'Test Extension'
}
Remove-EntraUserExtension @Params

This example demonstrates how to remove a user extension from Microsoft Entra ID.

  • ObjectId parameter specifies the user Object ID.
  • ExtensionName parameter specifies the user ExtentionName.

Parameters

-ExtensionName

Specifies the name of an extension.

Type:System.String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-ExtensionNames

Specifies an array of extension names.

Type:System.Collections.Generic.List`1[System.String]
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-ObjectId

Specifies an object ID.

Type:System.String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False