Set-EntraUserExtension
Sets a user extension.
Syntax
Set-EntraUserExtension
-ObjectId <String>
[<CommonParameters>]
Description
The Set-EntraUserExtension
cmdlet updates a user extension in Microsoft Entra ID.
Examples
Example 1: Set the value of an extension attribute for a user
Connect-Entra -Scopes 'User.ReadWrite.All'
$params = @{
ObjectId = 'SawyerM@contoso.com'
ExtensionName = 'extension_e5e29b8a85d941eab8d12162bd004528_extensionAttribute8'
ExtensionValue = 'New Value'
}
Set-EntraUserExtension @params
This example shows how to update the value of the extension attribute for a specified user.
-ObjectId
parameter specifies the user Id.-ExtensionName
parameter specifies the name of an extension.-ExtensionValue
parameter specifies the extension name values.
Parameters
-ObjectId
Specifies the ID of an object.
Type: | System.String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |