# <um:removeUserFromGroup> Tag

The <um:removeUserFromGroup> tag removes a user from a group.

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" %>

## Syntax

<tagName attribute="value" />

## Attributes

username

Required (String) - The username of the user to remove from the given group.

groupName

Required (String) - The name of the group from which the given user will be removed.

result

Required (String) - The name of an Integer variable to which the result of the remove user from group operation is assigned.

Possible values:

- Success: UserManagementTagConstants.REMOVE_USER_OK.
- Failure: UserManagementTagConstants.REMOVE_USER_FAILED.

## Example

This example shows how to use <um:removeUserFromGroup> to remove a specified user from a specified group.

    <um:removeUserFromGroup username="UserToRemove" groupName="SomeGroup" result="myResult" />

Related Topics

<um:removeUser> Tag

<um:removeGroupFromGroup> Tag

<um:removeGroup> Tag