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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Custom Connector Graph...
Power Automate
Unanswered

Custom Connector Graph API - Missing Scope error

(0) ShareShare
ReportReport
Posted on by

Hello,

 

created my first Custom Test Connector with a simple wrapper for the Graph API with one simple Action to clone a team

But I'm having trouble with the Scope. The error message is always the same 

 

 

{
 "error": {
 "code": "Forbidden",
 "message": "Missing scope permissions on the request. API requires one of 'Team.Create, Group.ReadWrite.All, Directory.ReadWrite.All'. Scopes on the request 'User.Read'",
 "innerError": {
 "date": "x",
 "request-id": "x",
 "client-request-id": "x"
 }
 }
}

 

 

 

I have done the following:

 

  • created a App Registration with Application permission Teams.Create, TeamMember.ReadWrite.All, TeamSettings.Read.All and granted everything
  • ClientID and Secret is created and valid
  • Created a Custom Connector with the following properties
  • ErikV_0-1651243237548.png

     

  • Defined the Action to clone a team
  • In the Test the request is send but I'm getting the response above

 

Now in Postman I have tried the exakt same thing but with Scope "https://graph.microsoft.com/.default" which postman tells me as I get the error Error: AADSTS1002012: The provided value for scope Teams.Create is not valid. Client credential flows must have a scope value with /.default suffixed to the resource identifier (application ID URI)

I
n Postman the POST REQUEST works as expected as I get a valid 200 Header and with Operations ID 

 

So now how can I make this work in my custom connector ?

 

What to put in Ressource URL and Scope ? 

 

Many Greetings and thx for the help

Erik 

 

Categories:
I have the same question (0)
  • Rhiassuring Profile Picture
    8,690 Moderator on at

    Hi there, 

     

    It looks like you have commas between your scopes -- based on what I read here, you should only have spaces, no commas. Give it a shot again after updating that and let us know how it goes!

     

    Cheers,


    Rhia

  • MarkKeightley Profile Picture
    4 on at

    Hi

     

    I am having a very similar issue to the above as well.

    In my case I've created a custom connector to post a message to a teams chat, using the code shown in example 5 here https://docs.microsoft.com/en-us/graph/api/chatmessage-post?view=graph-rest-1.0&tabs=http I created the app registration for this connector initially with different permissions and then added the required ChatMessage.Send, Chat.ReadWrite afterwards and the error I get suggests that the connector is not seeing these new rights, only the 2 rights I created the app registration with.

    I've tried adding the scopes to in the custom connectors OAuth2 section as mentioned above but that makes no difference.

    I've also tried recreating the both the custom connector and flow from scratch and still it doesn't see the 2 chat permissions I've added.

     

    Does anyone have any clues as to anything else I can try here?   

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard