This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20 R7
Get group access
|
Get group access -> Function result | ||||||||
Parameter | Type | Description | ||||||
Function result | Collection |
![]() |
Collection of group name(s) to which the user belongs | |||||
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.
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
Product: 4D
Theme: Users and Groups
Number:
1738
Created: 4D v18 R4
4D Language Reference ( 4D v20 R7)