web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Create a Team with Graph
Power Automate
Suggested Answer

Create a Team with Graph

(1) ShareShare
ReportReport
Posted on by 6
Hi
 
I'm trying to create a Team using the Graph API, but it fails.
 
I have an application in Entra with these permissions:
Directory.ReadWrite.All
Group.Create
Group.ReadWrite.All
Team.Create
TeamMember.ReadWrite.All
TeamSettings.ReadWrite.All
User.Read
User.Read.All
 
In Power Automate, I have added an HTTP-action, configured like this:
 
According to https://learn.microsoft.com/en-us/graph/api/team-post?view=graph-rest-1.0&tabs=http#example-2-application-permissions this is the correct way to call the API for creating a Team. However it fails miserably like this:
 
 
 
I have no idea why it's giving me a HTTP 400 invalid request URL? That's https://graph.microsoft.com/v1.0/teams, right?
 
Has anyone successfully created a team with Graph in Power Automate? (I'm creating teams just fine using the API in my own code, using the same Entra app, it just doesn't work in Power Automate)
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,963 Moderator on at
    Hi,
     
    I will provide you with how to resolve it, so as to better help than just saying.
     
    Use this.
     
     
    There you will see the following, which you need to fill in to make it work. Test it out there first, then you will easily be able to create it in PA.
    that being said the issue is specifically getting the oAuth Token, also why are you using double @@??
  • CU13091257-0 Profile Picture
    6 on at
    Thanks for your answer, FLMike. As stated, I can create a team via the API (for example using Graph Explorer), but it fails in Power Automate.
    When creating with app permissions, you must provide a user to be owner, as it doesn't run in a user-context. The double @'s is because Power Automate uses Workflow Definition Language, and they must be escaped, or you will get this: 
    "The input parameter(s) of operation 'HTTP' contains invalid expression(s). Fix invalid expression(s) for the input parameter(s) of operation 'HTTP'."
    (Reference: https://community.powerplatform.com/forums/thread/details/?threadid=a6d931d7-81e8-4c91-8016-8826cc227cc3)
    If anyone has successfully created a Team in Power Automate using application permissions, I'm eager to learn, because following the documentation does *not* do the trick :)
  • VJ-16091057-0 Profile Picture
    2 on at
    Thanks for your answer, FLMike.
     
    As stated, I can create a team via the API (for example using Graph Explorer), but it fails in Power Automate.
    When creating with app permissions, you must provide a user to be owner, as it doesn't run in a user-context. The double @'s is because Power Automate uses Workflow Definition Language, and they must be escaped, or you will get this: 
    "The input parameter(s) of operation 'HTTP' contains invalid expression(s). Fix invalid expression(s) for the input parameter(s) of operation 'HTTP'."
    (Reference: https://community.powerplatform.com/forums/thread/details/?threadid=a6d931d7-81e8-4c91-8016-8826cc227cc3)
     
    If anyone has successfully created a Team in Power Automate using application permissions, I'm eager to learn, because following the documentation does *not* do the trick :)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 470

#2
Haque Profile Picture

Haque 416

#3
David_MA Profile Picture

David_MA 344 Super User 2026 Season 1

Last 30 days Overall leaderboard