Share via

ProxyAddress Update with PowerShell

Cunico Alessandro 21 Reputation points
2020-11-27T14:27:16.3+00:00

I want to update proxyaddress field with powershell but I get this message:
"Remove-AzureADUserExtension : Error occurred while executing SetUser
Code: Request_BadRequest
Message: Property 'onPremisesDistinguishedName' is read-only and cannot be set."

I have the sync between onprem AD e AZure AD, I want to reuse some nomore existing onprem AD users.
When existing, they were created and licensed to use Dynamics CRM. I cannot delete them in CRM so I want to reassign them (in CRM) to other esxisting onprem AD users.

Thanks in advance
Alessandro

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments

Answer accepted by question author

Alfredo Revilla - Upwork Top Talent | IAM SWE SWA 27,551 Reputation points Moderator
2020-11-27T18:20:32.043+00:00

Hello @Cunico Alessandro , both onPremisesDistinguishedName and proxyAddresses fields are read only. The later builds up from other field values. To know more about this please take a look to How the proxyAddresses attribute is populated in Azure AD so you can use in combination with Set-ADUser cmdlet.

Please let me know if you need more help. If the answer was helpful to you, please accept it and optionally fill the feedback form it so that other members in the community can benefit from it.

Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.