Removing users and groups from topic roles using the wsadmin tool

To remove a user or group's permission to access a level in the topic hierarchy that has an additional level of permission set up, use these commands to remove the user or group from the Sender or Receiver role for the appropriate topic.

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

Note: The following commands are used to reverse the effect of an addUserToTopicRole or addGroupToTopicRole command, that is, they are used to remove a user or group from a role on a specific topic to which they have previously been added using the addUserToTopicRole or addGroupToTopicRole.command as described in Adding users and groups to topic roles using the wsadmin tool.
Removing a user
To remove a user from a topic roles that they belong to within the specified topic space, use the following command:
$AdminTask removeUserFromTopicRole
         {-bus busName
         -topicSpace topicSpaceName
         -topic topicName
         -role roleName
         -user userName}
Removing a group
To remove a group from a topic role that it belongs to within the specified topic space, use the following command:
$AdminTask removeGroupFromTopicRole
         {-bus busName
         -topicSpace topicSpaceName
         -topic topicName
         -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 roles through the command line
Reference topic    

Terms of Use | Feedback

Last updated: Aug 29, 2010 6:22:59 PM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=vela&product=was-express-dist&topic=rjr_topic_roles_delete
File name: rjr_topic_roles_delete.html