To add users to GlassFish using the Admin Console, follow these steps.
Start GlassFish if you haven’t already done so.
Start the Admin Console if you haven’t already done so.
You can start the Admin Console by starting a web browser and specifying the URL http://localhost:4848/asadmin. If you changed the default Admin port during installation, type the correct port number in place of 4848.
To log in to the Admin Console, type the user name and password of a user in the admin-realm who belongs to the asadmin group.
The name and password entered during installation will work, as will any users added to this realm and group subsequent to installation.
Expand the Configuration node in the Admin Console tree.
Expand the Security node in the Admin Console tree.
Expand the Realms node, then select the file realm.
Click the Manage Users button.
Click New to add a new user to the realm.
Type the correct information into the User ID, Password, and Group(s) fields.
The example applications reference a user with the following attributes:
User ID = wsitUser
Group List = wsit
New Password = changeit
Confirm New Password = changeit
Click OK to add this user to the list of users in the realm.
Click Logout when you have completed this task.