Styagi
Styagi

Reputation: 11

Creating Users/Groups in Websphere

I am new to Websphere Application Server. I have created a dmgr and federated profiles into it. As part of my project, I need to create a set of users and map them against groups in Users and Groups section.

Now my question is, do we have any way to automate creating & mapping users/groups and avoid manual work for other environments.

Upvotes: 1

Views: 4131

Answers (1)

Gas
Gas

Reputation: 18020

You could create users and groups via wsadmin. Check WIMManagementCommands command group for the AdminTask object and User and group management commands . For example:

$AdminTask createUser {-uid dmeyers –password tempPass -confirmPassword tempPass  –cn Dan –sn Meyers –mail [email protected]}

For mapping users and groups to application roles check this page: Options for the AdminApp object . For example:

AdminApp.install('myapp.ear', '[-MapRolesToUsers [["All Role" No Yes "" ""]
 ["Every Role" Yes No "" ""] [DenyAllRole No No user1 group1]]]')

Upvotes: 1

Related Questions