1

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.

Styagi
  • 11
  • 1
  • 3

1 Answers1

1

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 dmeyers@acme.com}

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]]]')
Gas
  • 17,601
  • 4
  • 46
  • 93