Before you begin, note the following:
...
Your product has a primary user store where the users/roles that you create using the management console are stored by default. It's default RegEx
configurations are as follows. RegEx
configurations ensure that parameters like the length of a user name/password meet the requirements of the user store.
Code Block |
---|
PasswordJavaRegEx-------- ^[\S]{5,30}$
PasswordJavaScriptRegEx-- ^[\S]{5,30}$
UsernameJavaRegEx-------- ^~!#$;%*+={}\\{3,30}$
UsernameJavaScriptRegEx-- ^[\S]{3,30}$
RolenameJavaRegEx-------- ^~!#$;%*+={}\\{3,30}$
RolenameJavaScriptRegEx-- ^[\S]{3,30}$ |
...
User management functionality is provided by default in all WSO2 Carbon-based products and is configured in the user-mgt.xml
file found in the <PRODUCT_HOME>/repository/conf/
...
The following topics are covered:
Table of Contents | ||||
---|---|---|---|---|
|
Adding a new user and assigning roles
Follow the instructions below to add a new user account and configure its role.
- Log on to the product's Management Console. In the Configure menu, click Users and Roles.
Click Users from the User Management page that opens.
Info The User link is only visible to users with Administrator permission.
- Click Add New User.
- The Add User page opens. Enter the user name and password. The Domain drop-down list contains all user stores configured for this product instance. By default, you only have the PRIMARY user store. To configure secondary user stores, see Configuring Secondary User Stores.
- If you want to add a user with the default
Everyone
role, click Finish now . Else, click Next to define a user role other than the default . - If you proceed to the next step, select the roles to be assigned to the user and Finish.
- The new user appears on the Users list.
You can change the user's password, roles or delete using the links associated with it.
Info You cannot change the user name of an existing user.
Adding a user role
Roles contain permissions for users to manage the Server. You can create different roles with various combinations of permissions and assign them to a user or a group of users. Through the management console, you can also edit and delete an existing user role.
Follow the instructions below to add a user role.
- Log on to the product's Management Console. In the Configure m enu, click Users and Roles.
Click Roles from the User Management page that opens.
- C lick on Add New Role.
- Enter the name for the role and click Next. The Domain drop-down list contains all user stores configured for this product instance. By default, you only have the PRIMARY user store. To configure secondary user stores, see Configuring Secondary User Stores.
You can also click Finish, in which case, the new role will be created with default permissions (none) and no assigned users. - If you proceed, select permissions for the new role and click Next.
- Select the users to be assigned to the role. You can conduct a search by name, or view all users by entering "*" into the search field.
- Click Finish.
- The new role appears under roles. Using the links associated with it, you can rename, edit permissions, users and delete the role.
When adding roles to external user stores
- Some external user stores do not allow you to create empty roles. In that case, selecting users who belong to a role is mandatory.
- If you connect to an external user store in read only mode, you can read existing roles from it but you can not edit/delete the roles. In this case, you can still create new roles which are editable and can be managed internally.
- If you connect to an external user store in read/write mode, you can edit the roles in the external user store as well.
Changing the current user's password
Follow the instructions below to change the password of the user currently logged in.
...
The User Management page opens. Click on the Change My Password .
The Change Password page appears. Populate the required fields and click Change.
...
directory. The following documentation explains how users, roles and permissions can be managed using the management console of WSO2 products.
Include Page | ||||
---|---|---|---|---|
|
Child pages (Children Display) |
---|