Get All AIP encrypted files - SharePoint Online

One of the recent project merger and acquisition.  Technology - M365 tenant to Tenant migration Areas of consolidation 1. Mailboxes  2. SharePoint online data 3. OneDrive for Business data 4. Teams data migration 5. Security and Compliance Migration  Area of concern from security and compliance side was the encrypted files within EXO, SPO, Teams, ODB. Issue with encrypted data migration - end users will not be able to access the documents once the Source tenant is decommissioned.   Solution available -  Ask end users to unencrypt the data before migration  Alternet Solution - 1. Decrypt the files, mails using eDiscovery - This will give us output in PST format will is available for offline access, but the data in source will still be encrypted.  Decryption in eDiscovery - Microsoft Purview (compliance) | Microsoft Docs   2. Use Get-AIPfileLabel and Get-AIPFileLabel but in order to use this you must be aware of all the files paths.  Challenges -  1. We do not want end user intervention

Error - QuarantinedAttributeValueMustBeUnique

Case History.

1. Client already had users created in office 365
2. Client wanted to setup SSO for office 365 users

Approach for requirement fullfilment  

1. Deployed and configured Azure AD connect 
    95% users were synced and soft match was successfully done 

5% users were getting error - QuarantinedAttributeValueMustBeUnique 

When we checked 2 users were found under Active users 
1. one in Cloud (this was created earlier/ already existed ) with active licenses and Mailbox
2. one unlicensed synced with AD
Solution -


but 

If we delete the user in Azure we will loose the Email Data and if we delete the user in AD we will lose the profile on system.

However considering the above condition and in order to retain data and Profile too we had resolved using another work around.

  1. Created a OU in AD “Non o365 sync”
  2. Edited the Azure AD connect and stopped the above mentioned OU from syncing with Azure
  3. Moved the users to this OU
  4. This deleted the users in office 365, that were unlicensed and syncing with AD
  5. Deleted the user from Office 365 recycle bin
  6. Edited the Users UPN In AD and moved back to “Users” OU
  7. Synced the users in office 365 identities mapped

Comments

Popular posts from this blog

Error - AttributeValueMustBeUnique in Azure AD connect sync

Add members to office 365 Security Group Using PowerShell and CSV

Enforce MFA using CSV

Analyze Office 365 Message headers