Express (Distributed operating systems), v8.0 > Secure applications and their environment > Authenticate users > Select a registry or repository > Manage realms in a federated repository > Virtual member manager > Reference > Supported commands > User and group management commands


duplicateMembershipOfUser command

Use this command to give a user the same group memberships as another user.


Purpose

Use the duplicateMembershipOfUser command to make a user a member of all the same groups as another user. For example, user1 is in group B and group C. Use the duplicateMembershipOfUser command to add user2 to the same groups as user1.

If successful, the duplicateMembershipOfUser command returns the unique name of the user specified in the copyToUniqueName parameter.

If the Use global security settings option is selected for the user realm or the Global federated repositories option is selected as the realm type for the specified domain, this command is executed on the federated repository of the admin domain. However, configuration changes performed on the domain are applied to the security domain-specific configuration.

command


Syntax

duplicateMembershipOfUser { -copyFromUniqueName uniqueName -copyToUniqueName uniqueName [-securityDomainName domainName] }


Parameters

-copyFromUniqueName uniqueName

Name of the user from which to copy the group memberships for another user to use.

-copyToUniqueName uniqueName

Name of the user to which to add the memberships of the user specified in the copyFromUniqueName parameter.

-securityDomainName domainName

Name that uniquely identifies the security domain. If not specified, uses the global federated repository.


Sample

To make the user called meyersd a member of all the groups that the user jhart belongs to, issue this command:
$AdminTask duplicateMembershipOfUser
  {-copyFromUniqueName uid=jhart,cn=users,dc=yourco,dc=com
   -copyToUniqueName uid=meyersd,cn=users,dc=yourco,dc=com }

Parent topic: User and group management commands
Command format



+

Search Tips   |   Advanced Search