Tag Link | [Admin_GroupAssignUser] | Category | Administration |
---|---|---|---|
Type | Substitution | Source Available | No |
Support | Preferred | Version | 5.0 |
Change | Unchanged | Data Source | Any |
Output Type | Boolean | Security | Tag |
Implementation | LCAPI | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0 |
[Admin_GroupAssignUser] assigns a user to a group. The tag requires two parameters: the name of a group and the name of a user.
The tag returns True if the assignment was successful. The tag returns False if the assignment could not be performed or if the user already belongs to the group.
This tag can be called by a group administrator or by the global administrator. The tag can either be called on a page that has been authenticated using an [Auth_...] tag or accepts optional
[Admin_GroupAssignUser: 'Groupname', 'Username']
[Admin_GroupAssignUser: 'Groupname', 'Username',
Required Parameters | |
---|---|
Groupname | The name of the group to which the user should be assigned. |
Username | The name of the user which should be assigned to the group. |
Optional Parameters | |
-Username | Optional administrator username. |
-Password | Optional administrator password. |
The
To assign a user to a group:
Use the [Admin_GroupAssignUser] tag with the name of the group and the name of the user who should be assigned to the group. The following examples adds a user JohnDoe to the group Accounting.
[Admin_GroupAssignUser: 'Accounting', 'JohnDoe']
True