The <um:getGroupNamesForUser> tag retrieves a String array that contains the group names corresponding to groups to which the provided user immediately belongs. This tag has no enclosed body.
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 whose matching groups are sought. Example: "<%=username%>"
id
Required (String) - A variable name to which the resultant group names are assigned. Example: "myGroups"
This example shows how to use <um:getGroupNamesForUser> to retrieve a group name to apply to a user.
<um:getGroupNamesForUser userName="<%=username%>" id="myGroups"/>