Hello,
I build a workflow for a specific group of persons and I want to trigger this every month. Independent from a user, with oAuth and Azure Enterprise Application.
So far so good.
For these users, I want to reset the password and this last step is not working.
I receive the following error message
{
"error": {
"code": "accessDenied",
"message": "Request Authorization failed",
"innerError": {
"message": "Request Authorization failed",
"date": "2022-08-27T07:21:34",
"request-id": "37ff9bff-XXXX-XXXX-XXXX-7243da31XXXX",
"client-request-id": "37ff9bff-XXXX-XXXX-XXXX-7243da31XXXX"
}
}
}
Ofc I have checked all APIs I need. Regarding this
Delegated (work or school account) | UserAuthenticationMethod.ReadWrite.All |
Delegated (personal Microsoft account) | Not supported. |
Application | Not supported. |
So I have UserAuthenticationMethod.ReadWrite in my API permissions and I also grant that for admin permissions. Therefore I dont understand, why it is not working. Ofc I used the http url which is generated by all the values, and did run that manually in Graph Explorer, here it is working (but ofc I used here my admin account), but that means the url is also correct.
I guess it is something with permissions for OAuth, but I don't know what else I need.
Any advice?
Does anyone have an idea? I am lost, dunno what I miss.
You need to have a bearer token in your header.
ok but still not working,
This is my POST request, and next to this is the result.
I checked the token with https://jwt.ms/, looks fine actually.
And without Authorization Barer and login with Global Admin in GraphExplorer it is working.
But when I add the Authorization Barer as well, i receive
In Graph Explorer I don't think you need a bearer token to do the calls as it's included.
Does the account you use in flow have any of the following roles?
For delegated scenarios where an admin is acting on another user, the admin needs one of the following Azure AD roles:
not yet, this is my non-admin account.
Actually I would prefer to use oauth2. so there is no option except one of the admins roles, connected to Flow?
not yet, this is my non-admin account.
Actually I would prefer to use oauth2. so there is no option except one of the admins roles, connected to Flow?
@salihzett Thats how I understand the documentation but I might be wrong, but you could add the role Authenticator Administrator to your flow account and test it and then remove it. If this does not work I don't see what you are doing wrong.
Hi @JimmyWork
but where i can add this role.
To my user? But for HTTP is it not possible to set a connector for users? And the basic authentification didn't work as well.
I mean it must work somehow, but I am really lost because the Authentication bearer doesn't work and I thought this is the only option.
I did not have time to look into this, sorry for the short answer maybe someone else can jump in and help you out due to I'm currently limited in time
The account you use to create the flow, can you temporary give that account the roles needed and test it out?
User | Count |
---|---|
88 | |
40 | |
23 | |
20 | |
16 |
User | Count |
---|---|
128 | |
49 | |
47 | |
35 | |
25 |