How do I Get All OUs Sync'd in ADConnect?

Anonymous
2023-04-27T18:21:09.51+00:00

I've been asked to get a list of OUs that I'm synchronizing in from my on-prem AD to AAD. I exported the configuration JSON file from Azure ADConnect on my end. I looked in the file and found both the included and excluded OU lists. However, I can't simply provide the list(s) as a report for sync'd OUs. There's a series of implicit includes that the include and exclude lists have to weave through. Has anyone created a script that generates a comprehensive list of all OUs in a domain and if they're sync'd or not? I've started to work on it, but the recursion is boggling my mind. I'm getting nowhere fast.

Microsoft Security | Microsoft Entra | Microsoft Entra ID
Microsoft Security | Microsoft Entra | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Sandeep G-MSFT 20,921 Reputation points Microsoft Employee Moderator
    2023-04-28T08:00:29.4366667+00:00

    @Anonymous

    Currently we do not have any option to export only the OU's which are in AD connect sync scope. We can only export the entire configuration which is configured in AD connect.

    May be in the future we might get this option onboarded.

    You can also submit your feedback in Azure feedback portal, where our PM's are directly monitoring public feedbacks.

    https://feedback.azure.com/d365community/forum/22920db1-ad25-ec11-b6e6-000d3a4f0789

    Let me know if you have any further questions on this.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.