or, are you perhaps requesting help with writing a Jython script that allows you to execute a command to perform this kind of request.
For example, something like this:
Main Topics
Browse All TopicsAdminTask.mapUsersToAdminR
The above command creates userid 123456 and maps to Administrator role at cell level.
Can some one help me in doing this...by providing the variables and define these varialbe values in a another text file.
AdminTask.mapUsersToAdminR
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Something like this perhaps?
With this input:
--------------------------
12345,Administrator,Admins
11111,Bill,Jack,Bob
--------------------------
Command:
--------------------------
wsadmin -conntype none -lang jython -f mapUsersToAdminRole.py map.dat
--------------------------
Generated output:
--------------------------
Processing: map.dat
>>> 12345,Administrator,Admins
mapUsersToAdminRole( ['-roleName', 'Administrator', '-userids', '12345'] )
mapUsersToAdminRole( ['-roleName', 'Adminsecuritymanager', '-userids', '12345'] )
>>> 11111,Bill,Jack,Bob
mapUsersToAdminRole( ['-roleName', 'Bill', '-userids', '11111'] )
mapUsersToAdminRole( ['-roleName', 'Jack', '-userids', '11111'] )
mapUsersToAdminRole( ['-roleName', 'Bob', '-userids', '11111'] )
--------------------------
The above code works as same...but my intension is to use this to actually make configuration.
So when i added AdminTask.mapUsersToAdminR
WASX7303I: The following options are passed to the scripting environment and are available as arguments that are stored in the argv variable: "[map.dat]"
Processing: map.dat
>>> 123456,Administrator
AdminTask.mapUsersToAdminR
WASX7017E: Exception received while running file "A1.py"; exception information: com.ibm.websphere.manageme
WASX7017E -
http://publib.boulder.ibm.
--------------------------
These errors can occur because there are UTF-8 characters in the file that are not valid. The default codepage for RHEL 3 is UTF-8 (en_US.UTF-8). When doing a text file read through Java" code, the program assumes all characters are UTF-8 encoded. There might be one or more characters in the file that are not part of the UTF-8 specification, causing the load to fail. An easy way to determine if a character that is not valid is causing the error is to enter export LANG=C and run the script again. If you determine that the problem is a character that is not valid:
1. Open a new text reader on the file.
2. Read it one character at a time.
3. Print the character that is not valid.
4. When you press the back characters, you get the exception and will then know which of the characters is causing the error.
5. Remove any characters that are not valid, then run the script again
--------------------------
Looking back at http://#a25026643 I see that I was looking at the wrong part of the error message. The important part is this:
Required parameter roleName is not found ...
Exactly what AdminTask command were you trying to execute?
That command has syntax problems...
- 2 open parenthesis '('
- 1 closing parenthesis ')'
- Note: If you do not specify this parameter, the cell level authorization group is assumed.
? Do you want the roleName to be "Administrator" with a capital 'A' ?
http://publib.boulder.ibm.
Hi,Following is the out put..
Installation
--------------------------
Product Directory /WAS/AppServer
Version Directory /WAS/AppServer/properties/
DTD Directory /WAS/AppServer/properties/
Log Directory /WAS/AppServer/logs
Backup Directory /WAS/AppServer/properties/
TMP Directory /var/tmp
Product List
--------------------------
ND installed
Installed Product
--------------------------
Name IBM WebSphere Application Server - ND
Version 6.1.0.25
ID ND
wow, that's the first time that I've had someone be at the recommended fix level!
Thanks also for providing the files (http#a25063567)
If we look at the script, we find the problem...
Note how the statement that actually calls, or invokes the mapUsersToAdminRole method doesn't include any parameters.
Change this line:
AdminTask.mapUsersToAdminR
To this:
AdminTask.mapUsersToAdminR
Be sure that this statement is exactly the same indentation at the print statement it follows.
Business Accounts
Answer for Membership
by: HonorGodPosted on 2009-08-04 at 12:22:29ID: 25017214
I'm sorry, but I don't understand. Please forgive me.
Are you trying to read an input file that contains the roleName and userids values from a text file, and issue the corresponding mapUsersToAdminRole() call?
p.s. I've requested assistance for this question to either get it move to the "IBM WebSphere Application Server" zone, or at least have that zone added.