List security roles for service integration by using the wsadmin tool
When we 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 us 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')
Commands
- Listing 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}
- Listing 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}
- 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:
- Jython...
AdminTask.listAllTopicsWithRoles("-bus busname -topicSpace topicSpaceName")
- Jacl...
$AdminTask listAllTopicsWithRoles {-bus busname -topicSpace topicSpaceName}
- Listing 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}
- Listing 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}
Last updated Nov 10, 2010 8:23:07 PM CST