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.

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.

 

dynamic userData = Security.getUserGroup();
MVCFunctions.Echo(userData);

Sample output

admins

See also:

•Security API: getUserGroups

•Security API: getUserName

•Security: User group permissions

•About Security API