Get Mailbox owner SID from Exchange Server

147 Views Asked by At

I am using the python package exchangelib to scan a mailbox. I need to get the mailbox owner SID without connecting to the AD directly (using LDAP queries).

I couldn't find a way to do this, is it possible?

Thanks.

1

There are 1 best solutions below

0
Erik Cederstrand On

The GetDelegate operation can return the SID of a user, but it requires that the user is a delegate of another account, and also that you know that account beforehand.

Otherwise, I'm not aware that this is possible via EWS (and thus exchangelib).