You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upon further investigation, I can confirm that this is an issue with how the OpenAPI document that the SDK is generated from represents the response object of this operation.
@davehope, please note that the call succeeds, and a user's sign-in session is revoked even though the command throws an error. A workaround is to use Invoke-MgGraphRequest -Uri "https://graph.microsoft.com/v1.0/users/$UserId/microsoft.graph.revokeSignInSessions" -Method POST -Body @{} to revoke a user's sign-in session as we work on a fix.
Apologies If I'm raising this in the wrong place, or an reporting a non-issue (New to MSGraph)
The Revoke-MgUserSign cmdlet (which I take as the equivalent to Revoke-AzureADUserAllRefreshToken ) consistently fails.
The application has User.ReadWrite.All, Directory.ReadWrite.All API permissions.
Inspecting the HTTP traffic (authorization header removed)
The response (request-id's removed):
Issue occurs regardless of whether UserPrincipalName or Id is used.
I notice the POST URL differs from that in the documentation:
https://docs.microsoft.com/en-us/graph/api/user-revokesigninsessions?view=graph-rest-1.0&tabs=http
Perhaps /v1.0/users/xxxxx/microsoft.graph.revokeSignInSessions should be /v1.0/users/xxxxx/revokeSignInSessions
AB#10954
The text was updated successfully, but these errors were encountered: