Hello!! I’m trying to use Microsoft Graph API to create bookings customers automatically using power automate.
I’ve registered an application in my tenant and retrieved the Tenant ID, Application ID, and client secret.
I’ve allocated the application the required permissions with admin consent:
Using the HTTP connector, I filled in the Active Directory OAuth requirements with my registered application details (Tenant ID, Application ID, secret) as well as method, URI and Body parameters.
When I run the flow I get a 401 error.
"code": "UnknownError",
"message": "{\"error\":{\"message\":\"Bad gRPC response. HTTP status code: 401\",\"code\":\"Unauthorized\"}}",
Any help would be appreciated!
Hey Sudeep, thanks for your reply.
Unfortunately my account doesn't have the permissions to use the API, so if i create a connection using HTTP with Azure AD, it wont have the correct permissions to perform the action.
That's why I wanted to use the app registration, which I have granted the permissions required. Can i somehow specify in that action that I want to use the app registration?
There are several HTTP actions available in Power Automate I use the one given below.
If you use this action, you need not worry about authentication.
When you configure the action for the first time, provide the following url:
lbendlin
7
Super User 2025 Season 1
Michael E. Gernaey
6
Super User 2025 Season 1
KT-07051015-0
4