How to prevent user normal get all user in office365 ?

Iron Contributor

Hello

     I see in office365 if one user don't need assign license or normal user not administrator then they can use this user connect to office365 by powershell and get all infomation user to csv .How to prevent that 

Best Regards

Thanks

5 Replies

Hi @Tien Ngo Thanh 

 

Disable access to Powershell for the user(s)

 

https://docs.microsoft.com/en-us/powershell/exchange/exchange-online/disable-access-to-exchange-onli...

 

Hope that answers your question!

 

Best, Chris

You can toggle the -UsersPermissionToReadOtherUsersEnabled setting:

 

Set-MsolCompanySettings -UsersPermissionToReadOtherUsersEnabled

Hi

if I set this command (Set-MsolCompanySettings -UsersPermissionToReadOtherUsersEnabled) then it has an effect to all function on web office365 ? as user can view profile and org chart...on outlook and web ? 

And If only disable powershell then all fuction on web normal , is it only deny user conenct by powershell ?

Thanks your help

It's only for PowerShell. There's no way to prevent users from seeing details in the GAL. Unless you hide the corresponding people in the GAL, or configure GAL segregation, both of which will impact collaboration.

Hi @Tien Ngo Thanh,

As I wrote above, disable access to Powershell should achieve what you need without impact on service.

Best, Chris