[Bug] Set-AzureADUserExtension - Missing ExtensionValue parameter
Error:
Update-MgUserExtension : A parameter cannot be found that matches parameter name 'ExtensionValue'.
Command Used:
Set-AzureADUserExtension -objectid d231d93a-bce5-4062-9bd7-700a8710b36c -ExtensionName "extension_32c48132b9f2431dbafd5e1d32582b1f_jobGroup" -ExtensionValue "L667"
Script Source:
https://github.com/MicrosoftDocs/entra-docs-pr/blob/main/docs/identity/app-provisioning/user-provisioning-sync-attributes-for-mapping.md
Script:
#Connect to your Azure AD tenant
Connect-AzureAD
#Create an application (you can instead use an existing application if you would like)
$App = New-AzureADApplication -DisplayName “test app name” -IdentifierUris https://testapp
#Create a service principal
New-AzureADServicePrincipal -AppId $App.AppId
#Create an extension property
New-AzureADApplicationExtensionProperty -ObjectId $App.ObjectId -Name “TestAttributeName” -DataType “String” -TargetObjects “User”
#List users in your tenant to determine the objectid for your user
Get-AzureADUser
#Set a value for the extension property on the user. Replace the objectid with the ID of the user and the extension name with the value from the previous step
Set-AzureADUserExtension -objectid 0ccf8df6-62f1-4175-9e55-73da9e742690 -ExtensionName “extension_6552753978624005a48638a778921fan3_TestAttributeName”
#Verify that the attribute was added correctly.
Get-AzureADUser -ObjectId 0ccf8df6-62f1-4175-9e55-73da9e742690 | Select -ExpandProperty ExtensionProperty
Hi @SteveMutungi254, Since the ExtensionValue and ExtensionName parameter is missing in the MgGraph cmdlet, it won't function in the Entra cmdlet.
@v-varshamane : Does the Beta API has this property? I am trying to establish if this is a full blown API parity gap or version parity item. cc: @v-akarke.
@SteveMutungi254 : No, the Beta API also does not have this property. cc : @v-varshamane
Hello everyone,
Im trying to migrate away from AzureAD module, but Im having real trouble when dealing with Extension Attributes.
With the "Enable-EntraAzureADAlias" cmdlet, I got the same error message as OP mentioned.
Update-MgUserExtension : A parameter cannot be found that matches parameter name 'ExtensionValue'.
Im on version 0.19.0-preview.
How should I migrate from the old "Set-AzureADUserExtension" cmdlet?
hey @SteveMutungi254 sorry to bother but do you have any updates on this issue, please? It's the same on version 1.0.2 still, and it's really delaying my migration from AzureAD module
@joaovmlima , apologies this skipped me. Let me prioritize it. I will keep you posted.