Removing authorization data by using the wsadmin tool

Use these commands to remove authorization data for the default roles, or for a destination or a foreign bus.

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.

Command-line help is provided for service integration bus commands:
  • For a list of the available service integration bus security commands in Jython and a brief description of each command, enter the following command at the wsadmin prompt:

    print AdminTask.help('SIBAdminBusSecurityCommands')

  • For overview help on a given command, enter the following command at the wsadmin prompt:

    print AdminTask.help('command_name')

After using the command, save your changes to the master configuration; for example, by using the following command:

AdminConfig.save()

Commands

Removing authorization data for the defaults
To remove all users and groups from every role (sender, receiver and so on) in the defaults, use the following command:
  • Using Jython:
    AdminTask.removeDefaultRoles("-bus busname")
    
  • Using Jacl:
    $AdminTask removeDefaultRoles {-bus busname}
    
Removing all authorization data for a destination
To delete all authorization data for a destination, use the following command:
  • Using Jython:
    AdminTask.removeDestinationRoles("-type destinationType -bus busname
     -foreignBus foreignBusName -destination destinationName")
    
  • Using Jacl:
    AdminTask.removeDestinationRoles("-type destinationType -bus busname
     -foreignBus foreignBusName -destination destinationName")
    
Notes:
  • This command deletes all authorization data for the specified destination. If the destination is a topic space, the command removes all authorization data for the virtual root and for the topics within the topic space, as well as for the topic space itself.
  • You can use this command if you are deleting the destination and want to remove all associated authorization permissions, or if you want to block all access to a destination by removing all authorization permissions for it. In this second case a user might still be able to access the destination if they have been granted default authorization permissions. If you have specified default authorization permissions and you want to block all access to the destination, you must stop the destination inheriting the default permissions by using the command setInheritDefaultsForDestinations (see Defining destination defaults inheritance by using the wsadmin tool). You should use the removeDestinationRoles command first, followed by the setInheritDefaultsForDestinations command.
Removing all authorization data for a foreign bus
To delete all authorization data for the specified foreign bus, use the following command:
  • Using Jython:
    AdminTask.removeForeignBusRoles("-bus busname
     -foreignBus foreignBusName")
    
  • Using Jacl:
    $AdminTask removeForeignBusRoles {-bus busname
     -foreignBus foreignBusName}
    
After using these commands, save your changes to the master configuration; for example, by using the following command:

AdminConfig.save()

Reference topic    

Terms of Use | Feedback

Last updated: Oct 20, 2010 7:53:43 PM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=compass&product=was-nd-dist&topic=rjr_auth_data_remove
File name: rjr_auth_data_remove.html