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

#839 - How to set permissions to Users module?

Closed General Question created by kir 9 years ago

Hi, Jason! Need to restrict access at leat to Edit profiles by users or even access to users detailview (for non-admin users or for manager group).

Is it possible?

Thanks in advance

  1. eggsurplus member avatar

    eggsurplus Provider Affiliate

    9 years ago

    For a user's own profile? You'll probably need to just custom code something to check for that and take the appropriate action.

  2. kir member avatar

    kir

    9 years ago

    THanks! What is more natural way to check: $current_user belong or not belong to groupname? (to place this condition to if() in the hook) Thanks

    • eggsurplus member avatar

      eggsurplus Provider Affiliate

      9 years ago

      Sure, there are a few ways. One is to call getUserSecurityGroups() in SecurityGroup.php and pass the current user ID. Then see if the desired group is in the returned array. It's not a static function and I apologize for that, but still easy enough to set up and call.

  3. kir member avatar

    kir

    9 years ago

    Thanks i will try

  4. eggsurplus member avatar

    eggsurplus Provider Affiliate

    9 years ago

    Closing out. Feel free to follow up if you have any more questions on this one.

This case is public. Please leave out any sensitive information such as URLs, passwords, etc.
Saving Comment Saving Comment...
Rating
Rating
  • "SecuritySuite was a very good addition to our SugarCRM implementation helping to integrate different functional teams with strictly specified roles."

    Read More Reviews