Listing security roles for service integration by using the wsadmin tool
When you are administering messaging security, use these commands to list the security roles that are associated with service integration bus destinations, foreign buses, topics within a topic space, users and groups.
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.
The wsadmin scripting client is run from Qshell.
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')
Commands
- Listing all destinations with roles
- To list all destinations that have roles defined for them, use the following
command:
- Using Jython:
AdminTask.listAllDestinationsWithRoles("-bus busname -type destinationType")
- Using Jacl:
$AdminTask listAllDestinationsWithRoles {-bus busname -type destinationType}
- Using Jython:
- Listing all foreign buses with roles
- To list all foreign buses that have roles defined for them, use the following
command:
- Using Jython:
AdminTask.listAllForeignBusesWithRoles("-bus busname")
- Using Jacl:
$AdminTask listAllForeignBusesWithRoles {-bus busname}
- Using Jython:
- Listing all topics within a topic space with roles
- To list all topics within a topic space that have roles defined for them,
use the following command:
- Using Jython:
AdminTask.listAllTopicsWithRoles("-bus busname -topicSpace topicSpaceName")
- Using Jacl:
$AdminTask listAllTopicsWithRoles {-bus busname -topicSpace topicSpaceName}
- Using Jython:
- Listing user roles
- To list all the roles that a user belongs to, use the following command
in wsadmin:
- Using Jython:
AdminTask.listAllRolesForUser("-bus busname -user userName")
- Using Jacl:
$AdminTask listAllRolesForUser {-bus busname -user userName}
- Using Jython:
- Listing group roles
- To list all the roles that a group belongs to, use the following command
in wsadmin:
- Using Jython:
AdminTask.listAllRolesForGroup("-bus busname -group groupName")
- Using Jacl:
$AdminTask listAllRolesForGroup {-bus busname -group groupName}
- Using Jython: