Returns the current user group name. Makes more sense to use with static permissions where each user belongs to a single user group.
Syntax
Security::getUserGroup()
Arguments
No arguments.
Return value
Returns the current user group name.
Example
This example shows how to output the current user data.
$userData = Security::getUserGroup();
echo $userData;
Sample output
admins
See also:
•Security: User group permissions