This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20 R7
SET GROUP ACCESS
|
SET GROUP ACCESS {( groups )} | ||||||||
Parameter | Type | Description | ||||||
groups | Collection |
![]() |
Name of group(s) to which the 4D user account must belong during the session | |||||
The SET GROUP ACCESS command modifies the memberships of the 4D user account for the current session. It resets any former group membership and sets the new memberships to the listed groups.
Notes:
Pass in the groups parameter a collection of existing group name(s) to which the 4D user account must belong (if a group name does not exist, it is ignored). If you pass an empty collection, the 4D user account will no longer belong to any group.
If you omit the groups parameter, the memberships of the 4D user account are reset to the group memberships stored on disk.
Note: When a group membership provides access to a "serialized" feature (e.g. a plug-in), a corresponding license is used and will remain attached to the 4D user account until the end of the session, even if the SET GROUP ACCESS command is called and group membership cancelled.
You want to promote the current user to the "admin" and "plugins" groups for the session:
$groups:=New collection("admin";"plugins")
SET GROUP ACCESS($groups)
Get group access
Get plugin access
SET PLUGIN ACCESS
SET USER ALIAS
Product: 4D
Theme: Users and Groups
Number:
1737
Created: 4D v18 R4
4D Language Reference ( 4D v20 R7)