Adding users and groups to topic space root roles using the wsadmin tool

As well as having permission to access the relevant topics, a user or group must also have permission to access the topic space to which these topics belong. Use these commands to add users and groups to roles on the topic space root.

To run these commands, use the AdminTask object of the wsadmin scripting client. Each command acts on multiple objects in one operation. The commands are provided to allow you to make the most commonly-required types of update in a consistent manner, where modifying the underlying objects directly would be error-prone.

Commands

You can use this command to define the access control policy for a messaging resource that does not yet exist. This approach is deliberate; by defining the access control policy first, you ensure that the associated messaging resource is secure from the moment it is created.

To add users and groups to roles on the topic space root, you assign them to one of the following roles on the topic space:

Adding a user
To add a user to a topic space root role, use the following command:
$AdminTask addUserToTopicSpaceRootRole
         {-bus busName
          -topicSpace topicSpaceName
          -role roleName
          -user userName}
Adding a group
To add a group to a topic space root role, use the following command:
$AdminTask addGroupToTopicSpaceRootRole
        {-bus busName
         -topicSpace topicSpaceName
         -role roleName
         -group groupName}
After using these commands, save your changes to the master configuration; for example, by using the following command:
 $AdminConfig save



Related tasks
Administering topic space root roles through the command line
Reference topic    

Terms of Use | Feedback

Last updated: Aug 29, 2010 5:25:00 PM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=vela&product=was-base-dist&topic=rjr_topic_root_add
File name: rjr_topic_root_add.html