Forum Discussion
windows2000
Apr 06, 2020Brass Contributor
Disabled teams account can still log in
Hey i am noticing a behaviour that i can reproduce right now that is very disturbing to my users/managers. We are having to terminate people due to covid, but we want to offer the ability for the...
- Apr 06, 2020
looks like i was able to block the attempt after some time now with the following command:
Revoke-AzureADUserAllRefreshToken -ObjectId user@domain.ca
ref: https://www.petri.com/blocking-access-office-365-user
of course you have to connect to azure first with powershell.
Install-Module AzureAD -Force
Import-Module AzureAD
Connect-AzureAD
SuleimanDC
Jun 19, 2020Iron Contributor
The most secure way to manage this would be to change their passwords at the same time when blocking the accounts.
Muxacka
Jun 30, 2021Copper Contributor
SuleimanDC Revoke the sessions from Azure AD account page, this will kill all the O365 active sessions by revoking the tokens