Forum Discussion

ChrisElla's avatar
ChrisElla
Copper Contributor
Apr 30, 2025

Mail Contact - Manager Attribute

Hi,

As part of our monthly audit in exchange we export all the Mail Contacts, along with the manager attribute. 

I run a EXO PowerShell script to pull a selection of attributes one being the Manager. The exported csv file, the manager is all blank even though it is populated.

The question is, is this populated and fed through AzureAD and not stored in exchange, and this is the reason why the script doesn't extract and show this. 

For example, when I run this short script: Get-MailContact -Identity "MyName" | FL

The manager attribute doesn't show, though when I run this:

Get-MailContact -Identity "MyName" | Select-Object Manager

It shows the manager but no value there.

PS C:\WINDOWS\system32> Get-MailContact -Identity "MyName" | Select-Object Manager

Manager
-------

Any help or advise would be greatly appreciated.

Thanks

2 Replies

  • There is no manager property for mail contact objects. If you are designating managers for your org contacts in Entra, use the Graph SDK for PowerShell to generate the report, instead of ExO PowerShell.

    • ChrisElla's avatar
      ChrisElla
      Copper Contributor

      Ok great, that explains it and I thought that might be the case. I will take that away to look into. Thanks again.

Resources