We can use the command Get-MsolUser to fetch set of required Azure AD users with proper filter and then pipe the results to Set-MsolUser cmdlet to block access to every user. Set-MsolUser -UserPrincipalName -BlockCredential $false The following command unblock the blocked user. Set-MsolUser -UserPrincipalName -BlockCredential $true We need to set the user associated property BlockCredential to block user access to Office 365 service. We can use the Azure AD powershell cmdlet Set-MsolUser to block user from login into Office 365 service (Ex: Mailbox, Planner, SharePoint, etc). Blocking access to an Office 365 account prevents anyone from using the account to sign in and access all the services and data in your Office 365 tenant.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |