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

#839 - How to set permissions to Users module?

Closed General Question created by kir 5 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

    5 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

    5 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

      5 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

    5 years ago

    Thanks i will try

  4. eggsurplus member avatar

    eggsurplus Provider Affiliate

    5 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
  • "This impressive add on is easy to use, extremely flexible, and huge time saver. This add on exceeded our expectations and is worth every penny!"

    Read More Reviews

Keep up to date on the latest additions

We'll send you an email every month with handpicked add-ons, reviews, tricks and tips. Don't worry, we hate spam as much as you do.