The <um:addUserToGroup> tag adds the user corresponding to the provided username to the group corresponding to the provided groupName. Both the specified user and the specified group must previously exist for proper tag behavior. The tag has no enclosed body.
Execution of this tag requires the logged in user to have administrator rights.
Note: All User Management tags send results to the same file. If you are checking for results, include this import statement at the top of the page: <%@ page import="com.bea.p13n.usermgmt. servlets.jsp.tags.UserManagementTag- Constants" %>
<tagName attribute="value" />
username
Required (String) - The name of the user to be added to the group. Example: "<%=username%>"
groupName
Required (String) - The name of the group to which the user is being added. Example: "<%=groupName%>"
result
Required (String) - The name of an Integer variable to which the result of the add user to group operation is assigned.
Possible values:
This example shows how to use <um:addUserToGroup> to add a new user to an existing group.
<um:addUserToGroup userName="<%=userName%>" groupName="<%=groupName%>" result="result"/>