Create O365 Group and Team using Graph API
I would like to share the procedure to create a Microsoft 365 Group and a team in teams using Graph API. We will use application (AD App) permisions instead of current user (Delegate) permissions. Create Group Reference: https://docs.microsoft.com/en-us/graph/api/group-post-groups?view=graph-rest-1.0&tabs=http Create Team Reference: https://docs.microsoft.com/en-us/graph/api/team-put-teams?view=graph-rest-1.0&tabs=http Steps to create Daemon App: Create App in Azure Active Directory Provide following application Graph API permissions. Groups.ReadWrite.All, Directory.ReadWrite.All, Team.Create Grant Admin Consent. I have used Azure serverless Function App technology because it allows developers to host business logic that can be executed without managing or provisioning infrastructure. I have created a Http trigger function to create Group using Graph API. I have chosen .Net Framework to write C# code. Create Group Code: I have created another Http trigger function to crea...