Dec 15 2020
01:33 PM
- last edited on
Jan 14 2022
03:30 PM
by
TechCommunityAP
Dec 15 2020
01:33 PM
- last edited on
Jan 14 2022
03:30 PM
by
TechCommunityAP
Hi There ,
Is it possible to revoke MFA sessions and require re-register for multiple users or a group of users ?
Thank You
Dec 16 2020 01:52 PM
@Lassaad_TOUKABRI
The best way to achieve this is through a PowerShell script I would say, looping through the users from an .CSV for example.
Please check the commands below:
Reset-MsolStrongAuthenticationMethodByUpn
Revoke-AzureADUserAllRefreshToken
Dec 21 2020 06:57 AM
@Pontus Själander Thank You ,
# Initiates a connection to Azure Active Directory.
Connect-MsolService
#Import CSV file and Resets the strong authentication method by using a user principal name
Import-Csv "C:\Temp\MFAUsersStatus.csv" | ForEach-Object {
$UserPrincipalName = $_."UserPrincipalName"
Reset-MsolStrongAuthenticationMethodByUpn -UserPrincipalName $UserPrincipalName
}
Sep 02 2022 08:38 AM
@Lassaad_TOUKABRI could you please share the csv structure for this file "MFAUsersStatus.csv"?
Thank u so much.