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.
3,184 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,225 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Andy David - MVP 148.9K Reputation points MVP
    2024-07-20T19:10:59.52+00:00

    Try giving the app User.ReadWrite.All

    application perms


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.