TIBCO Spotfire® Server and Environment - Installation and Administration

copy-group-membership

Copies group membership from one principal to another.

copy-group-membership 
[-b value | --bootstrap-config=value] 
[-t value | --tool-password=value] 
[-u value | --oldusername=value] 
[-g value | --oldgroupname=value] 
[-n value | --newusername=value] 
[-p value | --newgroupname=value]

Overview

Use this command to copy the group memberships assigned to an existing user or group to another existing user or group. Only one existing principal to copy from should be given and only one principal to copy to should be given. The principal will only get memberships that it does not already have.
Note: This will not be logged to the Action Log.
Note: Only direct membership will be copied (that is, membership explicitly set for a certain principal and memberships that the principal inherited).

Options

Option Optional or Required Default Value Description
-b value
--bootstrap-config=value
Optional none The path to the bootstrap configuration file. See Bootstrap.xml file for more information about this file.
-t value
--tool-password=value
Optional none The configuration tool password used to decrypt the database password in the bootstrap.xml file. If the tool password is omitted, the command will prompt the end user for it on the console. See Bootstrap.xml file for more information.
-u value
--oldusername=value
Optional none The name of an existing user to copy group membership from. Unless the user is part of the configured default domain, the name of the user must include the user's domain name, for example 'DOMAIN\\user' or 'user@domain'.
-g value
--oldgroupname=value
Optional none The name of an existing group to copy group membership from. Unless the group is part of the configured default domain, the name of the group must include the group's domain name, for example 'DOMAIN\\group' or 'group@domain'.
-n value
--newusername=value
Optional none The name of an existing user to copy group membership to. Unless the user is part of the configured default domain, the name of the user needs to include the user's domain name, for example 'DOMAIN\\user' or 'user@domain'.
-p value
--newgroupname=value
Optional none The name of an existing group to copy group membership to. Unless the group is part of the configured default domain, the name of the group needs to include the group's domain name, for example 'DOMAIN\\group' or 'group@domain'.