Home

How to prohibit normal users acces to other users AAD profile Authentication contact info-fields?

%3CLINGO-SUB%20id%3D%22lingo-sub-154444%22%20slang%3D%22en-US%22%3EHow%20to%20prohibit%20normal%20users%20acces%20to%20other%20users%20AAD%20profile%20Authentication%20contact%20info-fields%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-154444%22%20slang%3D%22en-US%22%3E%3CP%3EA%20customer%20recently%20pointed%20out%20that%26nbsp%3Ball%20users%20have%20permissions%20to%20use%20PowerShell%20(with%20added%20modules)%20to%20run%26nbsp%3B%3CSTRONG%3EGet-Msol%3CWBR%20%2F%3EUser%3C%2FSTRONG%3E%20and%20can%20read%20all%20user%20info%20and%20groups.%20To%20be%20able%20to%20use%20Delve%20and%26nbsp%3Bother%20tools%20that%20show%20profile%20data%20of%20course%20they%20need%20some%20permissions.%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20problem%20is%20that%20they%20also%20can%20read%20the%26nbsp%3Bdata%20stored%20in%20the%20authentication%20contact%20info-fields%2C%20used%20for%26nbsp%3Bself-service%20password%20reset%20among%20other%20things.%20This%20information%20should%20not%20at%20all%20be%20accessible%20for%20normal%20users%20accept%20their%20own%20stored%20data.%3C%2FP%3E%0A%3CP%3EThis%20customer%20is%20a%20college%20that%20also%20teaches%20IT-subjects.%20The%20staff%20will%20probably%20use%20private%20contact%20details%20(email%2C%20mobile%20number)%20for%20self-service%20password%20reset%20and%20such.%26nbsp%3BYou%20only%20need%20one%20savvy%20student%20to%20use%20freely%20available%20software%20to%20get%20a%20lot%20of%20private%20information%20of%20teachers.%26nbsp%3B%3C%2FP%3E%0A%3CP%3EUsing%20%3CSTRONG%3ESet-MsolCompanySettings%26nbsp%3B-UsersPermissionToReadOtherUsersEnabled%3C%2FSTRONG%3E%20has%20the%20effect%20that%20users%20cannot%20read%20any%20profile%20details%2C%20including%20in%20Delve%20and%20such.%20If%20they%20are%20a%20Office%20365%20Group%20administrator%20they%20also%20cannot%20add%20other%20users%20to%26nbsp%3Bbecome%20a%20member%20of%20this%20Group.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20question%20I%20have%3A%20does%20anybody%20know%20of%20a%20way%20to%20prohibit%20users%20to%20read%20the%20authentication%20contact%20info%20of%20other%20users%2C%20but%20still%20be%20able%20to%20read%20the%20other%20profile%20information%3F%20Or%20a%20way%20to%20prohibit%20normal%20users%20to%20use%20PowerShell%20or%20other%20such%20tools%20to%20get%20all%20user%20profile%20information%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-154444%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20AD%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-154887%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20prohibit%20normal%20users%20acces%20to%20other%20users%20AAD%20profile%20Authentication%20contact%20info-fields%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-154887%22%20slang%3D%22en-US%22%3E%3CP%3ENo%2C%20it's%20an%20org-wide%20setting.%20Until%20we%20get%20a%20proper%20RBAC%20support%20for%20AAD%2C%20that's%20your%20only%20option%20(and%20even%20when%2Fif%20we%20do%2C%20I'm%20not%20sure%20it%20will%20cover%20%22read%22%20permissions).%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-154881%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20prohibit%20normal%20users%20acces%20to%20other%20users%20AAD%20profile%20Authentication%20contact%20info-fields%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-154881%22%20slang%3D%22en-US%22%3EOne%20other%20question%3A%20do%20you%20know%20if%20it%20is%20possible%20to%20Set-MsolCompanySettings%20-UsersPermissionToReadOtherUsersEnabled%20%24False%20for%20the%20organization%20and%20-UsersPermissionToReadOtherUsersEnabled%20%24True%20fro%20a%20specific%20Security%20Group%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-154878%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20prohibit%20normal%20users%20acces%20to%20other%20users%20AAD%20profile%20Authentication%20contact%20info-fields%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-154878%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F58%22%20target%3D%22_blank%22%3E%40Vasil%20Michev%3C%2FA%3E%2C%20I%20was%20afraid%20that%20would%20be%20the%20answer.%20Because%20that%20is%20the%20way%20it%20worked%20in%20AD%20on%20prem%20most%20schools%20I%20know%20had%202%20AD's%3A%20one%20for%20students%20and%20one%20for%20staff.%20So%20students%20were%20never%20able%20to%20get%20the%20data%20from%20the%20staff%20AD.%20In%20Office%20365%20they%20need%20to%20be%20in%20the%20same%20Azure%20AD.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-154676%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20prohibit%20normal%20users%20acces%20to%20other%20users%20AAD%20profile%20Authentication%20contact%20info-fields%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-154676%22%20slang%3D%22en-US%22%3E%3CP%3EThat's%20the%20only%20option%20you%20have.%20The%20argument%20usually%20goes%20something%20like%20%22well%20you%20can%20see%20all%20this%20info%20in%20on-premises%20AD%20too%22.%20And%20there%20aren't%20that%20many%20regular%20users%20that%20will%20try%20PowerShell%20anyway%2C%20the%20bigger%20issue%20here%20is%20some%20rogue%20user%20running%20scripts%20to%20collect%20this%20information%2C%20etc.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Rebekka Aalbers-de Jong
Contributor

A customer recently pointed out that all users have permissions to use PowerShell (with added modules) to run Get-MsolUser and can read all user info and groups. To be able to use Delve and other tools that show profile data of course they need some permissions. 

The problem is that they also can read the data stored in the authentication contact info-fields, used for self-service password reset among other things. This information should not at all be accessible for normal users accept their own stored data.

This customer is a college that also teaches IT-subjects. The staff will probably use private contact details (email, mobile number) for self-service password reset and such. You only need one savvy student to use freely available software to get a lot of private information of teachers. 

Using Set-MsolCompanySettings -UsersPermissionToReadOtherUsersEnabled has the effect that users cannot read any profile details, including in Delve and such. If they are a Office 365 Group administrator they also cannot add other users to become a member of this Group. 

 

The question I have: does anybody know of a way to prohibit users to read the authentication contact info of other users, but still be able to read the other profile information? Or a way to prohibit normal users to use PowerShell or other such tools to get all user profile information?

 

4 Replies

That's the only option you have. The argument usually goes something like "well you can see all this info in on-premises AD too". And there aren't that many regular users that will try PowerShell anyway, the bigger issue here is some rogue user running scripts to collect this information, etc.

@Vasil Michev, I was afraid that would be the answer. Because that is the way it worked in AD on prem most schools I know had 2 AD's: one for students and one for staff. So students were never able to get the data from the staff AD. In Office 365 they need to be in the same Azure AD. 

One other question: do you know if it is possible to Set-MsolCompanySettings -UsersPermissionToReadOtherUsersEnabled $False for the organization and -UsersPermissionToReadOtherUsersEnabled $True fro a specific Security Group?

No, it's an org-wide setting. Until we get a proper RBAC support for AAD, that's your only option (and even when/if we do, I'm not sure it will cover "read" permissions).

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
35 Replies
Extentions Synchronization
ChirmyRam in Discussions on
3 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies