79556525

Date: 2025-04-05 03:35:59
Score: 1.5
Natty:
Report link

It's now set in the Entra profile, and if you are using Exchange on-prem using ADsync it will attribute match to the AAD Department.

https://learn.microsoft.com/en-us/powershell/exchange/recipientfilter-properties?view=exchange-ps&preserve-view=true

Connect-AzAccount
Update-AzADUser -UserPrincipalName "[email protected]" -Department "Engineering"
Get-AzADUser -UserPrincipalName "[email protected]" | Select-Object DisplayName, Department

Connect-ExchangeOnline -UserPrincipalName [email protected]
Get-User -Filter "Department -eq 'Engineering'"
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: JSAN-Codes