I'm writing an exchange event sink application which monitors for mailbox
events and one of items I'm looking to do is to identify if mailbox access is
done by primary owner or another person. Basically, what I'm trying to do is
to obtain information during event execution which will allow me to locate
the SID of mailbox owner. I'm a little bit confused what can be done to make
this happen. I was trying following approaches:
- use the mailbox alias part of
"file://./backofficestorage/domain/MBX/alias/..." URL. Didn't work, because
this alias is being fixed after mailbox is created and will not change if AD
user changes his alias, hence it's not possible to rely on this data
- use ntsecuritydescriptor to determine owner. Didn't work, because owner is
always shown as DOMAIN\Administrators group.
- Determine mailbox GUID and locate user in AD which is tied to this GUID.
Didn't work because I couldn't find any way to locate mailbox GUID using
EXOLEDB. I also tried to use MAPI properties to locate this GUID and couldn't
find a property which would give me that.
Any suggestions?
Archived from group: microsoft>public>exchange2000>development