How to assign roles to the application user in non interactive mode using add-user.sh script in EAP 6?
Issue
-
How to assign roles to the application user in non interactive mode using add-user.sh script in EAP 6?
-
Interactive mode like following-
[iingawal@iingawal bin]$ ./add-user.sh
What type of user do you wish to add?
a) Management User (mgmt-users.properties)
b) Application User (application-users.properties)
(a): b
Enter the details of the new user to add.
Realm (ApplicationRealm) :
Username : userOne
Password :
Re-enter Password :
What roles do you want this user to belong to? (Please enter a comma separated list, or leave blank for none)[ ]: roleOne
About to add user 'userOne' for realm 'ApplicationRealm'
Is this correct yes/no? yes
Added user 'userOne' to file '/NotBackedUp/EAP-6/jboss-eap-6.0/standalone/configuration/application-users.properties'
Added user 'userOne' to file '/NotBackedUp/EAP-6/jboss-eap-6.0/domain/configuration/application-users.properties'
Added user 'userOne' with roles roleOne to file '/NotBackedUp/EAP-6/jboss-eap-6.0/standalone/configuration/application-roles.properties'
Added user 'userOne' with roles roleOne to file '/NotBackedUp/EAP-6/jboss-eap-6.0/domain/configuration/application-roles.properties'
Environment
- JBoss Enterprise Application Platform (EAP)
- 6.0.x
- 6.1.0 alpha
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
