Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics > Security API > Methods

Security API: getUserGroup

Scroll Prev Next More


Returns the current user group name. Makes more sense to use with static permissions where each user belongs to a single user group.




No arguments.

Return value

Returns the current user group name.


This example shows how to output the current user data.


$userData = Security::getUserGroup();
echo $userData;

Sample output


See also:

Security API: getUserGroups

Security API: getUserName

Security: User group permissions

About Security API


Created with Help+Manual 7 and styled with Premium Pack Version 3 © by EC Software