Microsoft Graph API for onprem AD ? (Remove User from onprem AD Group)

MyAzQuery 171 Reputation points
2023-10-08T17:50:39.1566667+00:00

I know that MS Graph API support user and group modifications in Azure AD. But does MS Graph API support user/group modifications in onprem AD . i want to find a way to invoke an API to remove user from AD Group ? What options do we have ?

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

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 46,326 Reputation points
    2023-10-09T08:49:09.36+00:00

    Hi @MyAzQuery

    No, the Microsoft Graph API does not support user/group modifications in on-premises Active Directory, it is currently only available for Azure AD. The only way to update on-premises users or groups is to use the System.DirectoryServices.AccountManagement API or a similar tool that can directly access the on-premises AD.

    See similar question thread.

    Hope this helps.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.


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.