# <ugm:removeUserFromGroup> Tag

The <ugm: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.taglib.UserManagementTagConstants" %>

## Syntax

<tagName attribute="value" />

## Attributes

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 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 <ugm:removeUserFromGroup> to remove a specified user from a specified group.

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

Related Topics

<ugm:removeUser> Tag

<ugm:removeGroupFromGroup> Tag

<ugm:removeGroup> Tag