WebSphere WebSphere Application Server Version 6.1.x Feature Pack for Web Services Operating Systems: AIX, HP-UX, i5/OS, Linux, Solaris, Windows, z/OS

Adding users and groups to topic roles using the wsadmin tool

To introduce an additional level of access permission within a topic space, use these commands to add the users or groups to Sender or Receiver roles at any level in the topic hierarchy that they need to access.

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.

For i5/OS platforms The wsadmin scripting client is run from Qshell. For more information, see the topic "Configure Qshell to run WebSphere Application Server scripts".

For i5/OS platforms These commands are only valid when used with WebSphere Application Server Version 6 and later application servers. Do not use them with earlier versions.

For i5/OS platforms Command-line help is provided for service integration bus commands:

Commands

You can use this command to define the access control policy for a messaging resource that does not yet exist. This approach is deliberate; by defining the access control policy first, you ensure that the associated messaging resource is secure from the moment it is created.
Remember: Any roles that you define at the topic level are additional to any roles that the topic inherits from its parent in the topic hierarchy.
Adding a user
To add a user to a topic role within the specified topic space, use the following command:
$AdminTask addUserToTopicRole
         {-bus busName
         -topicSpace topicSpaceName
         -topic topicName
         -role roleName
         -user userName}
Adding a group
To add a group to a topic role within the specified topic space, use the following command:
$AdminTask addGroupToTopicRole
         {-bus busName
         -topicSpace topicSpaceName
         -topic topicName
         -role roleName
         -group groupName}
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


Timestamp icon Last updated: 27 November 2008
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.pmc.wsfep.multiplatform.doc/ref/rjr_topic_roles_add.html

Copyright IBM Corporation 2004, 2008. All Rights Reserved.
This information center is powered by Eclipse technology. (http://www.eclipse.org)