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.

 

userData = Security_getUserGroup()
response.write(userData)

Sample output

admins

See also:

Security API: getUserGroups

Security API: getUserName

Security: User group permissions

About Security API