Many thanks for holding me on this.
I would like to ask you if it is possible to check as well as adjust the following settings at the portal level and give it another try please.
See it below:
Looking forward to your feedback.
Regards!
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
This appears to be a tenant wide command and no global admin account seems to be capable of undoing it with Set-MsolCompanySettings -UsersPermissionToReadOtherUsersEnabled $true. They all get access denied as one once expect given the $false setting, but we do need to undo this.
Many thanks for holding me on this.
I would like to ask you if it is possible to check as well as adjust the following settings at the portal level and give it another try please.
See it below:
Looking forward to your feedback.
Regards!
Hello @BearsBeetsBattlestar
There you have the fix for your problem.
I hope that can be useful for you.
Looking forward to hearing from you
Cheers,
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.
Hello @BearsBeetsBattlestar and thanks for sharing your workaround. As a general rule we suggest to move to Microsoft Graph PowerShell SDK as a replacement for MSOnline since the latter has entered deprecation phase. Also, setting UsersPermissionToReadOtherUsersEnabled
to false
should only affect standard but not admin users. The error mesage and workaround signals access to the MSOnline module was disabled. Enable-AADIntTenantMsolAccess
turned it on again calling the Update authorizationPolicy endpoint.
Connect-MgGraph -Scopes "Policy.Read.All"
Get-MgPolicyAuthorizationPolicy
Connect-MgGraph -Scopes "Policy.ReadWrite.Authorization"
Update-MgPolicyAuthorizationPolicy -DefaultUserRolePermissions @{ AllowedToReadOtherUsers = $false}
Connect-MgGraph -Scopes "Policy.ReadWrite.Authorization"
Update-MgPolicyAuthorizationPolicy -BlockMsolPowerShell $false
Let us know if you need additional assistance. If the answer was helpful, please accept it and rate it so that others facing a similar issue can easily find a solution.
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Comments have been turned off. Learn more