Support
 
PhoneGet Quote
 
Support
 
US Sales: +1 888 720 9500
US Support: +1 844 245 1108
Intl: +1 925 924 9500
Aus: +1 800 631 268
UK: 0800 028 6590
CN: +86 400 660 8680

Direct Inward Dialing: +1 408 916 9890

 
 

How to create or delete a team using Microsoft Graph

Creating a Team

  1. PUT /groups/{groupid}/team

This request is used to create a team from an existing Microsoft 365 group which must have at least one owner. Ensure that the group has been created at least fifteen minutes ahead of the team creation time to prevent failure of the call.

Supply a JSON representation of the team object in the request body.

Example:

  1. PUT https://graph.microsoft.com/v1.0/groups/{groupid}/team
  2. Content-type: application/json
  3. {
  4. "memberSettings": {
  5. "allowCreateUpdateChannels": true
  6. },
  7. "messagingSettings": {
  8. "allowUserEditMessages": true,
  9. "allowUserDeleteMessages": true
  10. },
  11. "funSettings": {
  12. "allowGiphy": true,
  13. "giphyContentRating": "strict"
  14. }
  15. }

If successful, it will return a 201 Created response code and a team object in the response body.

Deleting a Team

  1. DELETE /groups/{groupid}

This request will delete the team and the group associated with it. The deleted Microsoft 365 group can be restored within 30 days, after which it will be permanently deleted.

Do not supply a request body, and if the call is successful, you will get the following response.

  1. HTTP/1.1 204 No Content

Using Microsoft Graph to manage Microsoft Teams requires you to have appropriate permissions. It can also be complex, time-consuming and error-prone. M365 Manager Plus helps simplify Teams management with its bulk management feature.

How can M365 Manager Plus help?

The user-friendly interface helps you easily create, update and delete teams in bulk by simply importing a CSV file. You can also create automated workflows in the tool to manage Teams. This will help save time and reduce your workload.

Creating Microsoft teams in bulk using M365 Manager Plus:

  1. Navigate to the Management tab.
  2. Go to Microsoft Teams in the left pane.
  3. Select Team Tasks → Create Team or Create Team from Group
  4. Select the required Microsoft 365 Tenant from the drop-down box.
  5. Import the required CSV file.
  6. Click Import Team(s)

The imported CSV file must consist of details such as DisplayName, Description, Visibility, Owner, and rules that help manage user permissions in Microsoft Teams.

To learn more about managing Microsoft Teams using M365 Manager Plus, click here.

 

Request Support

Need further assistance? Fill this form, and we'll contact you rightaway.

A holistic Microsoft 365 administration solution