I am running a couple of SOQL queriesthrough a Visualforce page. The queries simply look like:
[SELECT Id, Name, UserRoleId FROM User WHERE Id = :UserInfo.getUserId()] [SELECT Id, Name, ParentRoleId FROM UserRole WHERE Id = :UserInfo.getUserRoleId()]
This page works fine for system administrators; however, I get an Insufficient Privileges error when I try to visit this page in a standard user context. I guess it's probably because I don't setup the access permission for the standard user profile properly, but it seems that I can't change the "Administrative Permissions" for a standard user profile. I also tried to create a new profile and check the "Manage Users" box in the "Administrative Permissions", but I was still getting the same error when I was in a context of this new profile. I wonder what configuration do I need to perform exactly to get around this privilege issue?