Unable to retrieve Active Directory Organization Units with Microsoft Graph API

Balanjaneyulu Kantu 6 Reputation points
2024-01-22T06:32:49.11+00:00

How can I retrieve the Active Directory organization units(OU) that have been synced to Azure using ADDS(Active Directory Domain Services)? According to: https://azure.microsoft.com/en-us/documentation/articles/active-directory-ds-admin-guide-create-ou/ User accounts, groups, service accounts and computer objects that you create under custom OUs will not be available in your Azure AD tenant. In other words, these objects will not show up using the Azure AD Graph API or in the Azure AD UI. These objects will only be available in your Azure AD Domain Services managed domain So, is this just a "not possible" using Graph Api? Or is there another way? Is it possible using a different Microsoft api other than Graph?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,008 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vasil Michev 91,126 Reputation points MVP
    2024-01-22T16:47:17.69+00:00

    That's correct, you cannot retrieve this data via Graph API, nor any other API, afaik. Use the "standard" domain tools (or at least the ones that work with Azure AD DS).

    0 comments No comments