Get in touch with us!

Microsoft Teams automation using Graph API

Automate team lifecycle and management My name is Daniel Chronlund and I work as a Microsoft cloud specialist here at Altitude 365. Today I would like to share with you some inspiration around automating Microsoft Teams management.

Microsoft Teams as a Hub for Teamwork

Microsoft Teams has been around for some time now and it’s clear that it is the new communication and collaboration hub in Office 365. Organizations are starting to really utilize its possibilities with cloud service integration, custom made apps and intelligent bots. For example, it’s really cool to see how airline companies automatically create teams for every flight and puts pilots and flight attendants, etc. as members. The team is then used for all internal communication regarding that specific flight. A simple but powerful solution for instant and modern communication with integration to backend systems. Imagine what you can do in your organization!

Microsoft Graph API

Microsoft recently announced Teams management capabilities through the Microsoft Graph API. Graph is a RESTful API that can be called to manage many of Microsoft cloud services. For example, you can write an application or a scheduled PowerShell script that calls Graph to manage Azure AD, Office 365 and Intune, all through the same API. If you would like to explore Graph’s capabilities you can use the Graph Explorer. It’s an easy way to query the API and you can even authenticate to your own tenant to work with real data.

Teams Automation

Altitude 365 has helped customers with different levels of Teams automation. The teams in Microsoft Teams are built on top of Office 365 groups which can also be automated through the Graph API. This makes it possible to automate the whole team lifecycle.

Examples of basic lifecycle automation:

  • Create a team
  • Add members and owners
  • Configure team settings
  • Add channels
  • Post a welcome message
  • Delete the team when the time comes


You might want to perform automation with a little more intelligence. Some examples:

  • If a team has only one Owner, notify that person via email that it is company policy that teams has at least two owners.
  • Create weekly reports of teams with external guest users and put the result into a Power BI dashboard and send an invite to the company security officer.
  • Automatically create new teams for every department mentioned in the Active Directory department attribute and then add those users as members and the managers as team owners.


As you can see the possibilities are huge and with a couple of smart solutions like this you can really help your users to get the most out of the Office 365 teamwork tools. If you build the automation with PowerShell it’s perfect to run it with Azure Automation. No server required and you only pay for what you run. A modern way to do things.

More information about Teams Graph API at:

See it in Action

If you would like to see this in action and do some brainstorming around what teams automation can do for your organization, feel free to contact us at Altitude 365. We’re ready to help you on your way to a modern workplace with Teams as the hub for teamwork.

Also, check out our new workshop Journey from Skype for Business to Microsoft Teams.

Submit a Comment

Your email address will not be published. Required fields are marked *

Starkare tillsammans

Bolag inom både publik och offentlig sektor efterfrågar en alltmer kostnadseffektiv, platsoberoende och säker digital arbetsplats. Därför går nu Altitude 365 och Uclarity samman och bildar ett gemensamt specialistbolag.
Fortsätt på Altitude 365Kolla in Exobe

Altitude 365 + Uclarity – Årets Modern Work Partner!

Vinnaren är ett bra exempel på hur en “Born in the Cloud” ständigt förbättrar sitt erbjudande, arbetar nära och proaktivt med Microsoft för att hjälpa kunderna på deras digitaliseringsresa. Plus att vi på Microsoft verkligen ser fram mot den nya bolags-konstellationen (Altitude 365 + Uclarity) för ett “Starkare Tillsammans”.

Uclarity och Altitude 365 - Starkare tillsammans

Uclarity är specialister på digitala möten, telefoni, kontaktcenter och digitalt arbetssätt. Altitude 365 är specialister på säkerhet, mobilitet och hur bolag kan optimera resan till Microsoft365. Nu gör vi gemensam sak och bildar bolag tillsammans.

– Pandemin har tydliggjort behoven av en modern digital arbetsplats och vi har diskuterat ett samgående med Altitude 365 under en längre tid. Våra kunder har behov av specialistkompetens och tillsammans blir vi en ledande specialist inom Digital Workplace-området, säger Niklas Olsson Hellström, VD Uclarity AB.

Tommy Clark, Partner, Altitude 365, kommenterar:
– Inget bolag köper det andra utan båda bolagen får lika stora delar i det nya bolaget. Vår ledstjärna är att vi blir starkare tillsammans och att vi kan hjälpa våra kunder under hela deras resa.
Målet med sammanslagningen är att kunna hjälpa kunder med både teknik och effektiva arbetssätt.

– Det är då våra kunder får önskad effekt av sin investering i den digitala arbetsplatsen, säger Niklas Olsson Hellström.

Båda bolagen har svenska och internationella kunder från både privat och offentlig sektor. Sammanslagningen resulterar i en organisation på 50+ anställda baserade i Stockholm, Örebro och Göteborg.

För frågor, vänligen kontakta;
Tommy Clarke, Partner, Altitude 365 AB, 0703-593854,
Niklas Olsson Hellström, VD, Uclarity AB, 0734-198016,

Fortsätt på Altitude 365Kolla in Exobe