Not sure about the Windows AD , but if you want to access and modify the data of Azure AD using the Graph:
Please refer this document for more details:https://learn.microsoft.com/en-us/graph/azuread-identity-access-management-concept-overview.
----------
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".