Use XML to associate roles and users to an entity to create a security association.
Security associations can also be created using the <securityAssociations> block in the user XML template and the user group XML template.
You can include the XML parameters in the xml file, or you can specify them on the command line when they frequently change. For more information on command line parameters and XML elements, see Command Line - Syntax.
Procedure
-
Download the associate_role_users_with_entity.xml file to the computer where you will run the command.
-
To define the parameter values, do either of the following:
-
Open the associate_role_users_with_entity.xml file and update the XML parameters.
-
Type the parameters on the command line using the following format: -parameter_name parameter_value.
For information on supported parameters, see XML Parameters for Security Associations.
-
-
On the command line, go to software_installation_directory/Base and type the following command and include any parameters not defined in the .xml file:
qoperation execute -af associate_role_users_with_entity.xml
Example
This example associates the View role and the Cloud user group with the Carbonwincs entity.
qoperation execute -af associate_role_users_with_entity.xml -entity/clientName 'Carbonwincs' -associationsOperationType ADD -role/roleName 'View' -userOrGroup/userGroupName 'Cloud'