cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Create Planner plan, Error 401 - Unauthorized: Access is denied due to invalid credentials.

Hello guys !

 

I want to create a flow with an HTTP request to create a planner plan.

When I create this planner plan, an error displayed : "401 - Unauthorized: Access is denied due to invalid credentials."

 

Firstly, I give the permissions to my application on Microsoft Azure.

These permissions are :

  • Directory.AccessAsUser.All (Delegated)
  • Directory.ReadWrite.All (Delegated)
  • Group.ReadWrite.All (Delegated)

permissions.png

 

Then, I get my access token :

CyrilRM_0-1603786590338.png

 

Before create a planner, I create a new Microsoft group and I add a member to this group. Theses flows are executed by an administrator account :

CyrilRM_1-1603787207382.png

 

Then I make an HTTP request for create a Planner plan :

CyrilRM_2-1603787369702.png

(The value of my access token is : "Bearer {token}")

 

When I execute this flow, everything is working until the HTTP request.

CyrilRM_3-1603791429922.png

 

I tried to run this HTTP request with Postman but the response is the same :

CyrilRM_Postman.png

 

Do you have a solution to debug my query or any idea where the problem is?

2 REPLIES 2
jake
Advocate II
Advocate II

Different use case (getting Planner details from Graph) but same general setup and error/issue here. Registered an app, selected correct permissions, admin consented...

 

When I go to collect the token, it works, but the token doesn't seem to be working. Getting 401 - Unauthorized.

 

The only thing you might want to try differently is not putting your bearer token into the Raw authentication setting, but instead passing it as a header parameter. My flow isn't working, so I'm not the best person to be giving advice at the moment, but most of the documentation I've seen suggests this approach:

jake_0-1626222113728.png

 

charlie_phipps
New Member

Hi, I am having the same issue! Did you get a solution?

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Users online (1,762)