Network Deployment (Distributed operating systems), v8.0 > Reference > Commands (wsadmin scripting)
List 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.
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, run at the wsadmin prompt:
print AdminTask.help('SIBAdminBusSecurityCommands')
- For overview help on a given command, run at the wsadmin prompt:
print AdminTask.help('command_name')
Commands
List all destinations with roles
To list all destinations that have roles defined for them, use the following command:
### Jython
AdminTask.listAllDestinationsWithRoles("-bus busname -type destinationType")### Jacl
$AdminTask listAllDestinationsWithRoles {-bus busname -type destinationType}
List all foreign buses with roles
To list all foreign buses that have roles defined for them, use the following command:
### Jython
AdminTask.listAllForeignBusesWithRoles("-bus busname")### Jacl
$AdminTask listAllForeignBusesWithRoles {-bus busname}
List 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:
### Jython
AdminTask.listAllTopicsWithRoles("-bus busname -topicSpace topicSpaceName")### Jacl
$AdminTask listAllTopicsWithRoles {-bus busname -topicSpace topicSpaceName}
List user roles
To list all the roles that a user belongs to, use the following command in wsadmin:
### Jython
AdminTask.listAllRolesForUser("-bus busname -user userName")### Jacl
$AdminTask listAllRolesForUser {-bus busname -user userName}
List group roles
To list all the roles that a group belongs to, use the following command in wsadmin:
### Jython
AdminTask.listAllRolesForGroup("-bus busname -group groupName")### Jacl
$AdminTask listAllRolesForGroup {-bus busname -group groupName}