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.
There's a function in /modules/SecurityGroups/SecurityGroup.php called getUserSecurityGroups. If you pass the current user ID to it it will return all groups that the user is assigned to. You can then loop through those to see if in G1.
This case is public.
Please leave out any sensitive information such as URLs, passwords, etc.
Saving Comment...
Are you sure you want to delete this case?
SugarCRM Editions
Sugar Community
Compatible Versions
"We have big problem with SuiteCRM v.7.3.1 when creating custom screen by group. The Dashlets on the start page disappear for all user, we have this pr..."
- claude_f.
7 years ago
actually i mean the current user
7 years ago
There's a function in /modules/SecurityGroups/SecurityGroup.php called getUserSecurityGroups. If you pass the current user ID to it it will return all groups that the user is assigned to. You can then loop through those to see if in G1.
7 years ago
Thank you Jason. I did it with
...
7 years ago
Perfect. Did you mean SecurityGroup::getUserSecurityGroups($user_id)?
Got it to work as needed?
7 years ago
exactly. Thanks. This solved me an issue,
7 years ago
Great! I'll close this out for now.