by eggsurplus

Control what your users can access and save time, money, and frustrations. Lock down sensitive data in SugarCRM or SuiteCRM to specific groups or teams. Supports unlimited assigned users, unlimited group assignments to records, custom layouts for each group, login/sudo capabilities and much more.

Free 30 day trial
Try it Now

By clicking you consent to share your profile with the developer

#2095 - Employees-forbid users to see other users!

Closed General Question created by it12 8 years ago

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.

  1. eggsurplus member avatar

    eggsurplus Provider Affiliate

    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:

    if($this->module_dir == 'Users' && !is_admin($current_user)
    

    Change that to the following and save:

    if(($this->module_dir == 'Users' || $this->module_dir == 'Employees') && !is_admin($current_user)
    

    That will filter the employee list if you have Filter User List checked in Admin -> SecuritySuite Settings.

  2. it12 member avatar

    it12

    8 years ago

    Thank you very much.

    That does it, now they can see only users from groups they are assigned to.

    • eggsurplus member avatar

      eggsurplus Provider Affiliate

      8 years ago

      Great! Closing this out. Feel free to comment if you need anything else.

This case is public. Please leave out any sensitive information such as URLs, passwords, etc.
Saving Comment Saving Comment...
Rating
Rating
  • "Outstanding plugin. Great flexibility - took a little time to learn about the options, but great to have them available." - tcorlett

    Read More Reviews