The <ugm: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.taglib.UserManagementTagConstants" %>
<tagName attribute="value" />
atnProvider
Optional (String) - The name of the authentication provider to use. The default setting is the WebLogic Server DefaultAuthenticator. The authentication provider must provide write access. See Using Multiple Authentication Providers in Portal Development for more information.
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 <ugm:getGroupNamesForUser> to retrieve a group name to apply to a user.
<ugm:getGroupNamesForUser userName="<%=username%>" id="myGroups"/>