Listing users and groups in topic roles using the wsadmin tool

To introduce an additional level of access permission within a topic space, you add users or groups to Sender or Receiver roles at any level in the topic hierarchy that they need to access. Use these commands to list the users and groups currently in a topic role.

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

Listing users
To list the users in a Sender or Receiver topic role within the specified topic space, use the following command:
$AdminTask listUsersInTopicRole
         {-bus busName
         -topicSpace topicSpaceName
         -topic topicName
         -role roleName}
Note: This command lists the users that are assigned to a role for this specific topic. It does not list the users that belong to roles inherited from parent topics. Valid role names are Sender and Receiver.
Listing groups
To list the groups in a Sender or Receiver topic role within the specified topic space, use the following command:
$AdminTask listGroupsInTopicRole
         {-bus busName
         -topicSpace topicSpaceName
         -topic topicName
         -role roleName}
Note: This command lists the groups that are assigned to a role for this specific topic. It does not list the groups that belong to roles inherited from parent topics. Valid role names are Sender and Receiver.



Related tasks
Administering topic roles through the command line
Reference topic    

Terms of Use | Feedback

Last updated: Sep 20, 2010 11:08:29 PM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=vela&product=was-nd-mp&topic=rjr_topic_roles_list
File name: rjr_topic_roles_list.html