Xbasic
A5_ASSIGN_USER_TO_GROUPS Function
Syntax
L a5_assign_user_to_groups(C master_password ,C user_name ,C group_names [,C action ])
Arguments
- master_password
The master password for the database.
- user_name
The name of the user.
- group_names
A semi_colon (;) delimited list of groups.
- action
Optional. Default = "add". "add" = add user to groups "drop" = remove user from groups
Description
Allows the administrator to add or drop a user from one or more groups. Group_names is a semi_colon (;) delimited list of groups.
Discussion
The A5_ASSIGN_USER_TO_GROUPS() function allows an administrator to add or drop a user from groups.
Example
a5_add_new_group("mpassword", "Sales") ? a5_assign_user_to_groups("mpassword", "John", "Sales") = .T.
Limitations
Desktop applications only.
See Also