#2095 - Employees-forbid users to see other users!
Hello,
I have been trying to block access for any user only to see their own group and I have been successful so far when you want to put limitation in assignment fields but if users clicks on their name in any mode, view Employees menu shows on the left, if they click there, they can access and view all of the users in the whole system. What worries me is that Employees and Users don't exist in Role Management and you can't manipulate with them like with other modules.
How can we block and limit this only to certain group or better to say admins?
Thank you very much.
Best Regards,
Slaven.
8 years ago
Hi Slaven,
To do this, edit data/SugarBean.php and find the create_new_list_query function. You will see this line of code:
Change that to the following and save:
That will filter the employee list if you have Filter User List checked in Admin -> SecuritySuite Settings.
8 years ago
Thank you very much.
That does it, now they can see only users from groups they are assigned to.
8 years ago
Great! Closing this out. Feel free to comment if you need anything else.