+

Search Tips   |   Advanced Search

List security roles for service integration

When we are administering messaging security, use these commands to list the security roles 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.

(iSeries) (iSeries) The wsadmin scripting client is run from Qshell. (iSeries) See Configure Qshell to run WebSphere scripts .

Command-line help is provided for service integration bus commands:


Commands

List all destinations with roles

To list all destinations that have roles defined for them.

  • Use Jython:
    AdminTask.listAllDestinationsWithRoles("-bus busname
     -type destinationType")
    

  • Use 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 Jython:
    AdminTask.listAllForeignBusesWithRoles("-bus busname")
    

  • Use 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:

  • Use Jython:
    AdminTask.listAllTopicsWithRoles("-bus busname
     -topicSpace topicSpaceName")
    

  • Use Jacl:
    $AdminTask listAllTopicsWithRoles {-bus busname
     -topicSpace topicSpaceName}
    

List user roles

To list all the roles that a user belongs to.in wsadmin:

  • Use Jython:
    AdminTask.listAllRolesForUser("-bus busname -user userName")
    

  • Use Jacl:
    $AdminTask listAllRolesForUser {-bus busname -user userName}
    

List group roles

To list all the roles that a group belongs to.in wsadmin:

  • Use Jython:
    AdminTask.listAllRolesForGroup("-bus busname -group groupName")
    

  • Use Jacl:
    $AdminTask listAllRolesForGroup {-bus busname -group groupName}