This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v20 R7
Get group access

Get group access 


 

Get group access -> Function result 
Parameter Type   Description
Function result  Collection in 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. 

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

 
PROPERTIES 

Product: 4D
Theme: Users and Groups
Number: 1738

This command can be run in preemptive processes

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v18 R4

 
ARTICLE USAGE

4D Language Reference ( 4D v20 R7)