removeMemberFromGroup command

Use this command to remove a member from a group.

Purpose

Use the removeMemberFromGroup command to remove a user or a group from a specified group.

If successful, the removeMemberFromGroup command returns the unique name of the removed member.

Syntax

removeMemberFromGroup { -memberUniqueName uniqueName -groupUniqueName uniqueName
 }

Parameters

-memberUniqueName uniqueName
Specifies the unique name value for the user or group that you want to remove from the specified group. This parameter maps to the uniqueName property in virtual member manager.
-groupUniqueName uniqueName
Specifies the unique name value for the group you from which you want to remove the user or group that you specified in the memberUniqueName parameter. This parameter maps to the uniqueName property in virtual member manager.

Sample

To remove Dan Meyers from the admins group, issue this command:

$AdminTask removeMemberFromGroup {-memberUniqueName uid=meyersd,cn=users,dc=yourco,dc=com 
                                  -groupUniqueName cn=admins,cn=groups,dc=yourco,dc=com}dc=com}
To remove the operators group from the admins group, issue this command:
$AdminTask removeMemberFromGroup {-memberUniqueName cn=operators,cn=groups,dc=yourco,dc=com 
                                  –groupUniqueName cn=admins,cn=groups,dc=yourco,dc=com}


Terms of use | Feedback

http://publib.boulder.ibm.com/infocenter/wasinfo/v7r0/index.jsp?topic=/com.ibm.websphere.wim.doc/removememberfromgroupcommand.html