question

ExUser44-0578 avatar image
0 Votes"
ExUser44-0578 asked LucasLiu-MSFT commented

AD attributes of AD synced user

Hi Team,

We have noticed that when a user is created on on-premise AD but it's corresponding mailbox is created on O365 using Enable-RemoteMailbox cmdlet, certain AD attributes, for instance, "homemdb" and "msExchELCMailboxFlags" do not exist for this particular user. Checked this using below command:

 Get-ADUser -Filter {userprincipalname -eq '<user_identity>'} -properties homemdb, msExchELCMailboxFlags

We wanted to know if this is expected, if so, are there any alternate attributes for a mailbox created on O365?

Thanks!



office-exchange-online-itprooffice-exchange-server-itpro
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AndyDavid avatar image
1 Vote"
AndyDavid answered

image.png (11.0 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

LucasLiu-MSFT avatar image
0 Votes"
LucasLiu-MSFT answered LucasLiu-MSFT commented

Hi @ExUser44-0578 ,
Based on my knowledge and testing, this is expected behavior. When you migrate on-premises mailbox to Exchange online or create a remote mailbox for an AD account. Some attributes in AD will be changed. For example, the attributes "homeMDB" you mentioned, represents the proper noun of the database where the mailbox is located. These attributes have no practical meaning for O365 mailboxes, so they will be changed automatically, but these changes will not have any impact on your use.

There are also some attributes that will be changed: AD Attributes Changed When an On-Premises User Mailbox is Moved to EXO
Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.



If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.




· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks @AndyDavid and @LucasLiu-MSFT

We actually wanted to know if there is any alternate attribute that would give us ELC flag values.

Currently in our code(for On-prem), we are specifically checking for attribute "msExchELCMailboxFlags". This code fails when we test with AD synced user, hence wanted to know if alternate attribute for ELC flags exists.

Thanks!


0 Votes 0 ·

Can you change the code? :)
Seems like checking the recipient type makes more sense.

0 Votes 0 ·

@AndyDavid , yes we can change our code.

But just had a query, if we use recipient type check, it will only return recipient/mailbox type. Please correct me if I'm wrong here.

In our existing code, with the "msExchELCMailboxFlags" attribute(treating it as a bitmap), we are checking if Single Item Recovery and Litigation Hold flags are enabled for a mailbox.

Please help me understand how we could use recipient type attributes to check if Single Item Recovery and Litigation Hold flags are enabled.

Thanks!

0 Votes 0 ·
Show more comments
AndyDavid avatar image
0 Votes"
AndyDavid answered

In that case, you should connect to Exchange Online instead and query for those attributes :)

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.