Removing users and groups from bus destination roles using the wsadmin tool

To remove a user or group's permission to access a service integration bus destination, use the removeUserFromDestinationRole and removeGroupFromDestinationRole commands to remove them from the appropriate destination role or roles. You can remove users and groups from local and foreign destination roles.

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

Removing a user
To remove a user from a destination role, use the following command in wsadmin:
$AdminTask removeUserFromDestinationRole
         {-type destinationType
         -bus busname
         -foreignBus foreignBusName
         -destination destinationName
         -role roleName
         -user userName}
Removing a group
To remove a group from a destination role, use the following command in wsadmin:
$AdminTask removeGroupFromDestinationRole
         {-type destinationType
         	-bus busname
         	-foreignBus foreignBusName
         	-destination destinationName
         	-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 destination roles through the command line
Reference topic    

Terms of Use | Feedback

Last updated: Sep 20, 2010 10:03:57 PM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=vela&product=was-nd-zos&topic=rjr_dest_roles_delete
File name: rjr_dest_roles_delete.html