Microsoft Entra Suite Tech Accelerator
Aug 14 2024, 07:00 AM - 09:30 AM (PDT)
Microsoft Tech Community

Does anyone know how to set companyName via AzureAD PoSH module?

Brass Contributor

I'm assuming set-azureaduser would be the correct cmdlet to use. If that is the case, the documentation doesn't have any examples of how to populate attributes such as companyName. I'm able to select attributes with the following syntax: Get-AzureADUserExtension -ObjectId $UserId | select ExtensionProperty  | ConvertTo-Json or (Get-AzureADUser -ObjectId "").toJSon().


Is this attribute still read-only?


Thank you!

1 Reply

That property is only configurable via the Exchange tools afaik, so you need to use Set-User instead (or you can sync it from AD).