0
votes

I am trying to use Microsoft Graph API in Power Automate where I make calls out to perform some actions. I have been successful with all Graph calls up to this one where I get a 503 serviceNotAvailable error.

The call I am trying is below

GET https://graph.microsoft.com/v1.0/groups/b40e54ac-5626-xxxx-xxxx-xxxxxxxxxxxx/drive/root:/filepath.docx

If I paste this directly into Graph Explorer on the Graph API site it works fine so I am happy that the call is syntactically correct.

I can't get the call to work through Power Automate. I also have tried this through Postman and am getting the same 503 error.

{
  "error": {
    "code": "serviceNotAvailable",
    "message": "The service is not available. Try the request again after a delay. There may be a Retry-After header.",
    "innerError": {
      "request-id": "87725851-77fb-xxxx-xxxx-xxxxxxxxxxxx",
      "date": "2020-03-01T16:55:43"
    }
  }
}

Permissions in my app registration are

  • Directory.AccessAsUser.All
  • Directory.Read.All
  • Directory.Read.All
  • Directory.ReadWrite.All
  • Directory.ReadWrite.All
  • Files.Read.All
  • Files.ReadWrite.All
  • Group.Create
  • Group.Read.All
  • Group.ReadWrite.All
  • Group.Selected
  • Sites.FullControl.All
  • Sites.Manage.All
  • Sites.Read.All
  • Sites.ReadWrite.All
  • TeamsActivity.Read.All
  • TeamsActivity.Send
  • TeamsApp.Read.All
  • TeamsApp.ReadWrite.All
  • TeamsTab.Create
  • TeamsTab.Read.All
  • TeamsTab.ReadWrite.All
  • User.Read
  • User.ReadWrite.All

Am pulling my hair out ... and there's barely anything left!

2

2 Answers

4
votes

If you remove "Group.Create" permission completely and test, it should work.

Seems it doesn't like "Group.Create" with "Group.ReadWrite.All"

1
votes

If it works in Graph Explorer, but doesn't in Postman. That typically means that your access token in Postman is not correct.

Have you looked at the Postman collection I put together? It puts on rails fetching the access token based on your application id and secret. https://docs.microsoft.com/en-us/graph/use-postman

With regards to PowerAutomate. How are you entering the application id and secret for the the flow to get the application access token? We do have a tutorial here from start to finish to show the approach we recommend here https://docs.microsoft.com/en-us/graph/tutorials/flow