
Hi @Zahmedli
Thanks for reaching out to Micrsoft Q&A forum support.
Based on what you've described, I understand that you're working in a GCC High environment and are wondering if there's an API method to create Microsoft 365 groups in this specific environment.
As far as I know, you can create Microsoft 365 Groups using the Graph API endpoint POST /groups
to create Microsoft 365 Groups in GCC High. This functionality is supported through the national cloud endpoint:
https://graph.microsoft.us
However, you must ensure that:
- Your app is registered in the Azure Government portal: https://portal.azure.us
- You acquire tokens from https://login.microsoftonline.us
- You use the correct Graph endpoint: https://graph.microsoft.us
Link article: https://learn.microsoft.com/en-us/graph/deployments
Alternative ways you might try:
You can use PowerShell tools like PnP or CSOM, which are compatible with GCC High for provisioning and managing SharePoint sites. For example, commands such as New-PnPUnifiedGroup
or New-PnPSite
can help automate group and site creation. These tools rely on supported Microsoft APIs and can be configured to target the correct government cloud endpoints.
I hope this helps you solve the problem. Warm thanks!
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.