# <um:getParentGroupName> Tag

The <um:getParentGroupName> tag retrieves the name of the parent of the group associated with the provided groupName. The information is taken from the realm. 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" %>

## Syntax

<tagName attribute="value" />

## Attributes

groupName

Required (String) - The name of the group whose parent group name is sought. Example: "<%=groupName%>"

id

Required (String) - A variable name to which the name of the parent is available for the duration of the page's scope. Example: "parentGroupName". If there is no parent, the variable value is null.

## Example

This example shows how to use <um:getParentGroupName> to retrieve a parent group name.

    <um:getParentGroupName groupName="<%=groupName%>" id="parentGroupName"/>

Related Topics

<um:getChildGroupNames> Tag

<um:getGroupNamesForUser> Tag

<um:getTopLevelGroups> Tag