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
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 ?
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.