SOLVED
Home

Onboarding - Best Practice AD

%3CLINGO-SUB%20id%3D%22lingo-sub-834165%22%20slang%3D%22en-US%22%3EOnboarding%20-%20Best%20Practice%20AD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-834165%22%20slang%3D%22en-US%22%3E%3CP%3ESeen%20a%20lot%20of%20AD%E2%80%99s%20where%20everything%20in%20the%20on-prem%20AD%20are%20synced%20to%20AAD%20so%20%2B30.000%20%E2%80%98objects%E2%80%99%20are%20synced%20%E2%80%93%20even%20though%20only%202.000%20employees%20in%20the%20company%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20a%20%E2%80%9Cbest%20practice%E2%80%9D%20available%20somewhere%20how%20to%20%E2%80%9Cstructure%E2%80%9D%20the%20AD%20before%20installing%20AD%20Connect%20Sync%20to%20AAD%20%E2%80%93%20and%20Filtering%20is%20enabled%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELike%3A%3C%2FP%3E%3CP%3ECreate%20an%20O365%20OU%3C%2FP%3E%3CP%3ECreate%20the%20various%20'Security%20groups'%20in%20the%200365%20OU%3C%2FP%3E%3CP%3Eavoid%20nested%20groups%3C%2FP%3E%3CP%3Eetc.%20etc.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-834165%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20AD%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EIdentity%20Management%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-834598%22%20slang%3D%22en-US%22%3ERe%3A%20Onboarding%20-%20Best%20Practice%20AD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-834598%22%20slang%3D%22en-US%22%3E%3CP%3EI%20doubt%20there%20are%20many%20organizations%20that%20have%20restructured%20AD%20just%20for%20the%20sake%20of%20configuring%20AAD%20Connect.%20Run%20the%20IDFix%20tool%20to%20clean%20up%20any%20errors%2C%20then%20simply%20use%20filters%20to%20get%20just%20the%20objects%20you%20want%20to%20sync.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-834613%22%20slang%3D%22en-US%22%3ERe%3A%20Onboarding%20-%20Best%20Practice%20AD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-834613%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F58%22%20target%3D%22_blank%22%3E%40Vasil%20Michev%3C%2FA%3E%26nbsp%3B%20-%20I%20doubt%20that%20too%20-%20but%20still%2C%20MS%20must%20have%20som%20BP%2FRecommendations%20-%20as%20they%20have%20the%20Categorize%2Fgroup%20users%20and%20assign%20license%20on%20those%20groups%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-834729%22%20slang%3D%22en-US%22%3ERe%3A%20Onboarding%20-%20Best%20Practice%20AD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-834729%22%20slang%3D%22en-US%22%3EThe%20only%20thing%20we%20did%20to%20prep%20our%20AD%20before%20syncing%20to%20O365%20was%20to%20clean%20up%20all%20our%20various%20OUs.%20Over%20the%20years%20new%20items%20were%20created%20in%20places%20they%20shouldn't%20have%20been.%20So%20we%20got%20all%20the%20users%20in%20a%20users%20OU%2C%20DLs%20in%20their%20own%20OU%2C%20contractors%20in%20their%20own%20OU%2C%20etc.%20This%20simply%20made%20it%20easier%20going%20forward%20and%20got%20everyone%20on%20the%20same%20page%20where%20things%20should%20be%20created.%20I%20think%20in%20a%20nutshell%2C%20organize%20your%20AD%20in%20the%20way%20it%20works%20for%20your%20organization.%20I%20think%20that%20is%20the%20key.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-877295%22%20slang%3D%22en-US%22%3ERe%3A%20Onboarding%20-%20Best%20Practice%20AD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-877295%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F108979%22%20target%3D%22_blank%22%3E%40Taen%20keren%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EMy%20number%20one%20recommendation%20to%20customers%20for%20preparing%20for%20AAD%20Connect%20is%20to%20look%20at%20your%20AD%20data%20like%20a%20SQL%20database%20owner.%26nbsp%3B%20Don't%20let%20there%20be%20any%20junk%2C%20make%20sure%20all%20your%20attributes%20are%20programmatically%20verified%20(i.e.%2C%20if%20there%20is%20a%20rule%20affecting%20an%20attribute%2C%20ensure%20all%20object%20conform%20to%20that%20rule.%26nbsp%3B%20Ex%3A%20all%20users%20must%20have%20a%20Department%20set%20and%20normalized%20to%20one%20of%20the%20allowed%20values)%2C%20and%20of%20course%20get%20rid%20of%20any%20conditions%20which%20must%20use%20OU%20filtering%20and%20replace%20them%20with%20attribute%20filtering.%26nbsp%3B%20Example.%26nbsp%3B%20Don't%20put%20all%20contractors%20in%20an%20OU%2C%20Azure%20doesn't%20have%20OUs%2C%20instead%20set%20an%20attribute%20on%20a%20user%20to%20define%20them%20as%20internal%2C%20external%2C%20contractor%2C%20seasonal%2C%20intern%2C%20etc.%20so%20you%20can%20tell%20who%20people%20are%20when%20they%20are%20all%20synchronized%20to%20Azure%20into%20the%20same%20OU.%26nbsp%3B%20And%20of%20course%2C%20fix%20all%20IDFIX%20errors%20ahead%20of%20time.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20have%20used%20the%20following.%3C%2FP%3E%0A%3CP%3E1.%26nbsp%3B%20Reserve%20three%20extension%20attributes%2C%20they%20don't%20have%20to%20be%20the%20same%20as%20mine.%3C%2FP%3E%0A%3CP%3E-%20ExtensionAttribute1%3A%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20%26nbsp%3B%20-%20Enter%20'NoSync'%20if%20the%20user%20does%20not%20sync%20to%20Azure.%26nbsp%3B%20Configure%20this%20in%20AAD%20Connect%20to%20not%20sync%20these%20object%20that%20meet%20this%20filter.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20%26nbsp%3B%20-%20Enter%20'DoesNotMigrate'%20if%20the%20mailbox%20does%20not%20move%20to%20O365.%26nbsp%3B%20Use%20this%20filtering%20when%20looking%20for%20mailboxes%20that%20are%20left%20on-premises.%26nbsp%3B%20An%20example%20would%20be%20service%20accounts%20that%20have%20to%20be%20on-premises%20because%20they%20send%20too%20much%20email%20for%20throttling%20policies.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20%26nbsp%3B%20-%20Enter%20'Postpone%3A%20%3CDATE%3E'%20if%20the%20mailbox%20cannot%20migrate%20until%20a%20future%20date%3C%2FDATE%3E%3C%2FP%3E%0A%3CP%3E-%20ExtensionAttribute2%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20%26nbsp%3B%20-%20Use%20for%20licensing.%26nbsp%3B%20This%20can%20be%20a%20single%20entry%2C%20string%20of%20characters%2C%20or%20a%20bitwise%20number.%26nbsp%3B%20Whatever%20you%20need%20for%20your%20environment.%26nbsp%3B%20You%20can%20then%20set%20up%20AAD%20Connect%20transforms%20to%20put%20people%20in%20O365%20licensing%20groups%20based%20on%20this%20information.%26nbsp%3B%20Example%3A%20'O365E5%3BTeamsConferencing%3BVisio%3BProject%3BNoYammer'%3C%2FP%3E%0A%3CP%3E-%20ExtensionAttribute3%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20%26nbsp%3B%20-%20Similar%20to%20Attribute2%20but%20used%20for%20Admin%20group%20memberships%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20%26nbsp%3B%20-%20Example%3A%26nbsp%3B%20'Azure%3AGlobalAdministrator'%2C%20'O365%3AHelpDesk%2CCompliance'.%26nbsp%3B%20Etc%2C%20you%20get%20to%20define%20the%20names%20and%20associate%20those%20with%20scripts%20to%20put%20people%20in%20the%20proper%20role%20groups%20effectively%20controlling%20the%20membership%20of%20cloud%20groups%20with%20on-premises%20attributes.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20hope%20these%20ideas%20have%20helped.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-907832%22%20slang%3D%22en-US%22%3ERe%3A%20Onboarding%20-%20Best%20Practice%20AD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-907832%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F204812%22%20target%3D%22_blank%22%3E%40Brian%20Kronberg%3C%2FA%3E%26nbsp%3B-%20how%20about%20On-prem%20admins%20-%20should%20they%20be%20synced%20to%20the%20AAD%20or%20should%20they%20be%20%22cloud-only%22%20identities%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-908565%22%20slang%3D%22en-US%22%3ERe%3A%20Onboarding%20-%20Best%20Practice%20AD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-908565%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F108979%22%20target%3D%22_blank%22%3E%40Taen%20keren%3C%2FA%3E%2C%20security%20best%20practices%20of%20course%20will%20say%20to%20separate%20your%20admin%20accounts%20to%20limit%20risk%20if%20one%20credential%20is%20somehow%20compromised.%26nbsp%3B%20But%20then%20again%2C%20that%20is%20exactly%20why%20we%20also%20highly%20recommend%20forcing%20multi-factor%20authentication%20for%20all%20admin%20accounts.%26nbsp%3B%20So%2C%20this%20is%20a%20decision%20for%20your%20organization%20to%20make.%26nbsp%3B%20Require%20alternate%20credentials%20for%20on-premises%20versus%20cloud%2C%20or%20share%20a%20credential%20and%20enforce%20MFA%20on%20it.%26nbsp%3B%20If%20admins%20are%20using%20the%20web-based%20GUI%2C%20it%20is%20not%20that%20difficult%20having%20multiple%20credentials%2C%20just%20a%20little%20pain.%26nbsp%3B%20However%2C%20where%20it%20really%20gets%20difficult%20is%20automation%20via%20PowerShell%20scripting.%26nbsp%3B%20There%20is%20no%20%22good%22%20way%20to%20enforce%20MFA%20and%20automate%20scripting%20because%20it%20requires%20you%20to%20store%20your%20password%20credential%20in%20a%20file%20which%20defeats%20the%20purpose%20of%20MFA.%3CBR%20%2F%3E%3CBR%20%2F%3ESo%2C%20I'm%20sorry%2C%20but%20I%20don't%20have%20an%20easy%20answer%20for%20you%20but%20I%20hope%20this%20explanation%20helps.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Taen keren
Super Contributor

Seen a lot of AD’s where everything in the on-prem AD are synced to AAD so +30.000 ‘objects’ are synced – even though only 2.000 employees in the company 

 

Is there a “best practice” available somewhere how to “structure” the AD before installing AD Connect Sync to AAD – and Filtering is enabled?

 

Like:

Create an O365 OU

Create the various 'Security groups' in the 0365 OU

avoid nested groups

etc. etc. 

6 Replies

I doubt there are many organizations that have restructured AD just for the sake of configuring AAD Connect. Run the IDFix tool to clean up any errors, then simply use filters to get just the objects you want to sync.

Highlighted

@Vasil Michev  - I doubt that too - but still, MS must have som BP/Recommendations - as they have the Categorize/group users and assign license on those groups? 

The only thing we did to prep our AD before syncing to O365 was to clean up all our various OUs. Over the years new items were created in places they shouldn't have been. So we got all the users in a users OU, DLs in their own OU, contractors in their own OU, etc. This simply made it easier going forward and got everyone on the same page where things should be created. I think in a nutshell, organize your AD in the way it works for your organization. I think that is the key.
Solution

@Taen keren 

My number one recommendation to customers for preparing for AAD Connect is to look at your AD data like a SQL database owner.  Don't let there be any junk, make sure all your attributes are programmatically verified (i.e., if there is a rule affecting an attribute, ensure all object conform to that rule.  Ex: all users must have a Department set and normalized to one of the allowed values), and of course get rid of any conditions which must use OU filtering and replace them with attribute filtering.  Example.  Don't put all contractors in an OU, Azure doesn't have OUs, instead set an attribute on a user to define them as internal, external, contractor, seasonal, intern, etc. so you can tell who people are when they are all synchronized to Azure into the same OU.  And of course, fix all IDFIX errors ahead of time.

 

I have used the following.

1.  Reserve three extension attributes, they don't have to be the same as mine.

- ExtensionAttribute1: 

    - Enter 'NoSync' if the user does not sync to Azure.  Configure this in AAD Connect to not sync these object that meet this filter.

    - Enter 'DoesNotMigrate' if the mailbox does not move to O365.  Use this filtering when looking for mailboxes that are left on-premises.  An example would be service accounts that have to be on-premises because they send too much email for throttling policies.

    - Enter 'Postpone: <date>' if the mailbox cannot migrate until a future date

- ExtensionAttribute2:

    - Use for licensing.  This can be a single entry, string of characters, or a bitwise number.  Whatever you need for your environment.  You can then set up AAD Connect transforms to put people in O365 licensing groups based on this information.  Example: 'O365E5;TeamsConferencing;Visio;Project;NoYammer'

- ExtensionAttribute3:

    - Similar to Attribute2 but used for Admin group memberships

    - Example:  'Azure:GlobalAdministrator', 'O365:HelpDesk,Compliance'.  Etc, you get to define the names and associate those with scripts to put people in the proper role groups effectively controlling the membership of cloud groups with on-premises attributes.

 

I hope these ideas have helped.

@Brian Kronberg - how about On-prem admins - should they be synced to the AAD or should they be "cloud-only" identities 

@Taen keren, security best practices of course will say to separate your admin accounts to limit risk if one credential is somehow compromised.  But then again, that is exactly why we also highly recommend forcing multi-factor authentication for all admin accounts.  So, this is a decision for your organization to make.  Require alternate credentials for on-premises versus cloud, or share a credential and enforce MFA on it.  If admins are using the web-based GUI, it is not that difficult having multiple credentials, just a little pain.  However, where it really gets difficult is automation via PowerShell scripting.  There is no "good" way to enforce MFA and automate scripting because it requires you to store your password credential in a file which defeats the purpose of MFA.

So, I'm sorry, but I don't have an easy answer for you but I hope this explanation helps.

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
30 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies