Forum Discussion

windows2000's avatar
windows2000
Brass Contributor
Apr 06, 2020
Solved

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...
  • windows2000's avatar
    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

     

Resources