addMemberToGroup command

Use this command to add a member to a group.

Purpose

Use the addMemberToGroup command to add a user or a group to a group.

If successful, the addMemberToGroup command returns the unique name of the added member.

Syntax

addMemberToGroup { -memberUniqueName uniqueName -groupUniqueName uniqueName }

Parameters

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

Sample

To add the user, meyersd, as a member of the admins group, issue this command:
$AdminTask addMemberToGroup {-memberUniqueName uid=meyersd,cn=users,dc=yourco,dc=com 
                             –groupUniqueName cn=admins,cn=groups,dc=yourco,dc=com}
To add the admins group as a member of the operators group, issue this command:
$AdminTask addMemberToGroup {–memberUniqueName cn=admins,cn=groups,dc=yourco,dc=com
                             -groupUniqueName cn=operators,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/addmembertogroupcommand.html