Hi @Tom Neal
The companyName
or usageLocation
attribute of the invited user cannot be modified at the time of invitation, and the above attributes can only be modified after the user is invited.
Import-Module Microsoft.Graph.Users
$params = @{
companyName = "Microsoft"
usageLocation = "US"
}
$userId = 'xxxxxxxxxxxxxxxxx'
Update-MgUser -UserId $userId -BodyParameter $params
Hope this helps.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.