Can a Microsoft Entra Security Group be created using SharePoint CSOM (ClientContext) instead of Microsoft Graph?

Likitha Kattamudi 0 Reputation points
2026-07-02T12:04:45.5766667+00:00

I'm developing a SharePoint Online migration tool.

Currently, I create Microsoft Entra Security Groups using Microsoft Graph:
await graphClient.Groups.PostAsync(group);

I would like to know whether the same operation can be performed using SharePoint CSOM (ClientContext) instead of Microsoft Graph.

Specifically:

  1. Does SharePoint CSOM provide any API to create a Microsoft Entra (Azure AD) Security Group?
  2. If not, is Microsoft Graph the only supported API for creating Microsoft Entra Security Groups?
  3. If CSOM cannot create them, is the recommended approach to:
    • Create the Security Group using Microsoft Graph.
      • Add members using Microsoft Graph.
        • Then use CSOM only to assign permissions in SharePoint?

Could someone from Microsoft confirm the supported approach and provide any official documentation?

Microsoft 365 and Office | SharePoint | Development
0 comments No comments

Your answer

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