Idira Identity: Preventing the MSExchMailboxGuid from syncing during Office 365 Provisioning

Idira Identity: Preventing the MSExchMailboxGuid from syncing during Office 365 Provisioning

93
Created On 11/10/26 11:01 AM - Last Modified 11/10/26 12:57 PM


Question


How can the "MSExchMailboxGuid" attribute be ignored during Office 365 Provisioning?

Environment


Identity App Access Service

Answer


Some third party migration tools require that users be provisioned with a new mailbox in Office 365, in order to migrate the user's mail.  However, if the user still has a local Exchange mailbox, the "MSExchMailboxGUID" attribute will be populated.  If this attribute is populated, provisioning will not create a new mailbox for the user in Office 365. 

Idira Identity has a workaround for this issue.  The workaround is to customize the Office 365 provisioning script to sync the attribute's contents as "null".  

In the Admin Portal, navigate to Apps > Office 365 > Provisioning > Provisioning Script. Copy and paste the below script into the script editor and change "@domain.com" to the actual UPN suffix of the users in question.  

For example, replace "Domain.com" with "@contoso.com":

if (isPerson()) {

var dnArray = getSourcePropertyByName("userPrincipalName");

if (dnArray && dnArray.Length) {
var dn = String(dnArray[0]).toLowerCase();
trace("source.dn=" + dn);
if (dn.indexOf("@domain.com")>=0) {
destination.MSExchMailboxGuid = null;
} else {
trace("user is not from domain.com");
}
}

The logic of the above script is as follows:
  1. If the user in question is from Active Directory, Idira Identity will get the user's UPN from AD.
  2. If the returned UPN is not 'null', Idira Identity will convert the UPN to all lowercase.
  3. Idira Identity will then check whether the converted UPN value contains "@domain.com".  If so, Idira Identity will set the user's MSExchMailboxGUID value to "null"
  4. If the user's UPN does not contain "@domain.com", Idira Identity will sync the contents of the attribute that reside in the user's object from AD.
After implementing the script, initiate a full sync by navigating to the Admin Portal > Settings > Users > Provisioning > Start Sync. 

After the sync completes, provisioned users should then have an in-cloud mailbox.


Additional Information


Details

Question:

How can the "MSExchMailboxGuid" attribute be ignored during Office 365 Provisioning?



Answer:

Some third party migration tools require that users be provisioned with a new mailbox in Office 365, in order to migrate the user's mail.  However, if the user still has a local Exchange mailbox, the "MSExchMailboxGUID" attribute will be populated.  If this attribute is populated, provisioning will not create a new mailbox for the user in Office 365. 

Idira Identity has a workaround for this issue.  The workaround is to customize the Office 365 provisioning script to sync the attribute's contents as "null".  

In the Admin Portal, navigate to Apps > Office 365 > Provisioning > Provisioning Script. Copy and paste the below script into the script editor and change "@domain.com" to the actual UPN suffix of the users in question.  

For example, replace "Domain.com" with "@contoso.com":

if (isPerson()) {

var dnArray = getSourcePropertyByName("userPrincipalName");

if (dnArray && dnArray.Length) {
var dn = String(dnArray[0]).toLowerCase();
trace("source.dn=" + dn);
if (dn.indexOf("@domain.com")>=0) {
destination.MSExchMailboxGuid = null;
} else {
trace("user is not from domain.com");
}
}


The logic of the above script is as follows:
  1. If the user in question is from Active Directory, Idira Identity will get the user's UPN from AD.
  2. If the returned UPN is not 'null', Idira Identity will convert the UPN to all lowercase.
  3. Idira Identity will then check whether the converted UPN value contains "@domain.com".  If so, Idira Identity will set the user's MSExchMailboxGUID value to "null"
  4. If the user's UPN does not contain "@domain.com", Idira Identity will sync the contents of the attribute that reside in the user's object from AD.
After implementing the script, initiate a full sync by navigating to the Admin Portal > Settings > Users > Provisioning > Start Sync. 

After the sync completes, provisioned users should then have an in-cloud mailbox.
 


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001QyBCAU&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail