• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to secondary sidebar
OpenTechTips

OpenTechTips

Comprehensive IT Guides for Pros and Enthusiasts

MENUMENU
  • HOME
  • ALL TOPICS
    • Exchange
    • InfoSec
    • Linux
    • Networking
    • Scripting
      • PowerShell
    • SSL
    • Tools
    • Virtualization
    • Web
    • Windows
  • ABOUT
  • SUBSCRIBE
Home » Office 365 – Convert a Synced Azure User to Cloud Managed

Office 365 – Convert a Synced Azure User to Cloud Managed

August 1, 2020 - by Zsolt Agoston - last edited on September 26, 2020

1. Synced vs Cloud Managed

AD synced user accounts are very convenient as changes to the on-prem AD accounts are synced to Office365 automatically, for example password changes, name changes, etc. It is very handy in a user perspective, but because of these certain attributes cannot be edited in the cloud - like user passwords can only be reset on-prem - additional SMTP addresses only can be added using an Exchange server hosted on-prem that accesses the on-premises AD. Another option is editing the local AD manually with a tool like ADSIEdit, although that method is NOT supported by Microsoft.

If you want a user to be fully customizable, editable in the cloud you can convert it to cloud managed type. Note that if you do that, naturally no local AD changes will be synchronized to the cloud version of the user's profile!

2. Convert Individual Users to Cloud Managed

a. move the user to a non-syncing OU in the on-prem Active Directory. We move Alice from "alwayshotcafe.com/My Business/Users" (which is our only synchronized OU) to "alwayshotcafe.com/My Business/Not Syncing/Users".

Office 365 – Convert a Synced Azure User to Cloud Managed

Then trigger a sync cycle so we can proceed instantly.

PS C:\> Invoke-Command -ComputerName aad.alwayshotcafe.com -ScriptBlock {Start-ADSyncSyncCycle -PolicyType delta}

PSComputerName RunspaceId                           Result
-------------- ----------                           ------
aad            637b8dbd-cbe4-46c6-a52f-f9787bb61817 Success

b. That put Alice in a soft deleted state. Simply use the Restore-MsolUser cmdlet to re-activate the user.

PS C:\> Get-MsolUser -ReturnDeletedUsers

UserPrincipalName       DisplayName isLicensed
-----------------       ----------- ----------
Alice@AlwaysHotCafe.com Alice       False


PS C:\> Get-MsolUser -ReturnDeletedUsers | ? UserPrincipalName -like "Alice@AlwaysHotCafe.com" | Restore-MsolUser

UserPrincipalName       DisplayName isLicensed
-----------------       ----------- ----------
Alice@AlwaysHotCafe.com Alice       False

3. Verify User Connectivity

Alice should be able to use the cloud services just like before. The only difference now in an administrative perspective that her account is now fully managed in Office 365 (note that no LastDirSyncTime value is present in her account)

PS C:\> Get-MsolUser -all | Select UserPrincipalName,LastDirSyncTime | Sort LastDirSyncTime

UserPrincipalName                                       LastDirSyncTime
-----------------                                       ---------------
Sync_AAD_82b624986c30@alwayshotcafe2020.onmicrosoft.com
Alice@AlwaysHotCafe.com
admin@alwayshotcafe2020.onmicrosoft.com
Allen.Anthony@alwayshotcafe.com                         01/08/2020 07:27:12
Immanuel.Ortega@alwayshotcafe.com                       01/08/2020 07:27:12
Abigail.Love@alwayshotcafe.com                          01/08/2020 07:27:12
Pedro.Cruz@alwayshotcafe.com                            01/08/2020 07:27:12
Greta.Krause@alwayshotcafe.com                          01/08/2020 07:27:12
Dominic.Santiago@alwayshotcafe.com                      01/08/2020 07:27:12
Ronan.Donovan@alwayshotcafe.com                         01/08/2020 07:27:12
Elsie.Riley@alwayshotcafe.com                           01/08/2020 07:27:12
Elias.Zuniga@alwayshotcafe.com                          01/08/2020 07:27:12
Andy.Allison@alwayshotcafe.com                          01/08/2020 07:27:12
Walker.Stafford@alwayshotcafe.com                       01/08/2020 07:27:12
Crystal.Montes@alwayshotcafe.com                        01/08/2020 07:27:12
Ivy.Pope@alwayshotcafe.com                              01/08/2020 07:27:12
Tomas.Liu@alwayshotcafe.com                             01/08/2020 07:27:12
Trey.Harper@alwayshotcafe.com                           01/08/2020 07:27:12
Aaron.Mullen@alwayshotcafe.com                          01/08/2020 07:27:12
…

Reader Interactions

Comments Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Tools

Secondary Sidebar

CONTENTS

  • 1. Synced vs Cloud Managed
  • 2. Convert Individual Users to Cloud Managed
  • 3. Verify User Connectivity

  • Terms of Use
  • Disclaimer
  • Privacy Policy
Manage your privacy

To provide the best experiences, we and our partners use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us and our partners to process personal data such as browsing behavior or unique IDs on this site and show (non-) personalized ads. Not consenting or withdrawing consent, may adversely affect certain features and functions.

Click below to consent to the above or make granular choices. Your choices will be applied to this site only. You can change your settings at any time, including withdrawing your consent, by using the toggles on the Cookie Policy, or by clicking on the manage consent button at the bottom of the screen.

Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Statistics

Marketing

Features
Always active

Always active
Manage options Manage services Manage {vendor_count} vendors Read more about these purposes
Manage options
{title} {title} {title}
Manage your privacy
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Statistics

Marketing

Features
Always active

Always active
Manage options Manage services Manage {vendor_count} vendors Read more about these purposes
Manage options
{title} {title} {title}