Get Mailbox owner SID from Exchange Server

Gal Yaniv 65 Reputation points
2023-09-04T13:07:36.4666667+00:00

Hi,

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,

Gal

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
4,890 questions
Exchange Server Development
Exchange Server Development
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Development: The process of researching, productizing, and refining new or existing technologies.
544 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,626 questions
0 comments No comments
{count} votes

Accepted answer
  1. Amit Singh 4,896 Reputation points
    2023-09-05T08:37:37.6266667+00:00

    No, without explicitly connecting to AD using LDAP queries, obtaining the mailbox owner's SID is impossible. Exchangelib cannot access the mailbox owner SID because it is kept in Active Directory.

    A third-party program that can query AD directly is the only option to obtain the mailbox owner's SID without connecting to AD. These tools are numerous and include Quest Active Directory Users and Computers.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.