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

- 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)
In 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