The Revoke-SPOUserSession cmdlet for SharePoint Online is retiring in November 2024. Users should transition to using Revoke-MgUserSignInSession. The rollout starts early November and finishes by mid-November. After retirement, attempts to use the old cmdlet will result in an error directing to the new cmdlet.
We will be retiring the Revoke-SPOUserSession PowerShell cmdlet for Microsoft SharePoint Online (SPO), as part of our ongoing efforts to enhance security and streamline scope and permissions for our users. Instead, please use the Revoke-MgUserSignInSession, where we will continue to invest resources.
When this will happen:
We will begin rolling this out in early November 2024 and expect to complete by mid-November 2024.
How this will affect your organization:
Our telemetry indicates that only a few organizations are active users of the Revoke-SPOUserSession cmdlet for their user management needs. If your organization is currently using this cmdlet, transition to utilizing ‘Revoke-MgUserSignInSession’.
After the retirement, requests using the Revoke SPOUserSession cmdlet will be blocked with an error message similar to:
“This cmdlet has been deprecated and replaced by Microsoft graph cmdlet ‘Revoke-MgUserSignInSession’ as described in: Revoke-MgUserSignInSession
What you need to do to prepare:
Please immediately begin transitioning from using the Revoke-SPOUserSession cmdlet. To avoid unexpected impact, also ensure none of your workflows are calling this cmdlet. Instead, please use the Revoke-MgUserSignInSession, <Revoke-MgUserSignInSession> where we will continue to invest resources.
Additional Information:
Revoke user access in Microsoft Entra ID