Skip to main content
Version: Next

Get group access

Get group access -> Function result

ParameterTypeDescription
Function resultCollection🡐Collection of group name(s) to which the user belongs

Description

The Get group access command returns the memberships of the 4D user account for the current session. If the user does not belong to any group in the session, an empty collection is returned.

Returned value

Collection of strings: group names to which the 4D user account belongs.

Example

You want to check if the current user belongs to the "plugins" group:

 $groups:=Get group access
 If($groups.countValues("plugins")#0) //the user belongs to the group
    ... //
 End if

See also

SET GROUP ACCESS