Revoke SignIn Sessions is not working with User.RevokeSessions.All permission in logic app

Azeeb Rusthique EY 0 Reputation points
2024-07-20T06:26:40.8266667+00:00

I am trying to use logic apps to revoke the sign in session of a user using their User Principal Name.

I registered an application in Azure and assigned it, the "User.RevokeSessions.All" permission and granted admin consent as well.

I am able to generate the API token the logic app. But i am seeing an error in the HTTP request to revoke the session. The error is as given below:

what should i do?

{  "error": {    "code": "Authorization_RequestDenied",    "message": "Insufficient privileges to complete the operation.",    "innerError": {      "date": "2024-07-20T05:55:08",      "request-id": "a5d912ec-93dc-45f8-b759-ab33054e6bb8",      "client-request-id": "a5d912ec-93dc-45f8-b759-ab33054e6bb8"    }  }}
Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,986 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,382 questions
0 comments No comments
{count} votes