Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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
maxLevel3
minLevel3

Adding a new user and assigning roles

Follow the instructions below to add a new user account and configure its role.

  1. Log on to the product's Management Console. In the Configure  menu, click Users and Roles. Users and rolesImage Removed
  2. Click Users from the User Management page that opens.

    Info

    The User link is only visible to users with   Administrator   permission.

  3. Click  Add New User.
  4. 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.
    Image Removed
  5. 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 .
  6. If you proceed to the next step, select the roles to be assigned to the user and Finish
  7. The new user appears on the  Users   list. WSO2 user managementImage Removed
  8. 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.

  1. Log on to the product's Management Console. In the  Configure  m enu, click  Users and Roles.
  2. Click Roles from the User Management page that opens.

  3. C lick on Add New Role.
  4. 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.
    Image Removed
    You can also click  Finish,  in which case, the new role will be created with default permissions (none) and no assigned users.
  5. If you proceed, select permissions for the new role and click Next.
    Image Removed
  6. 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.
  7. Click Finish.
  8. The new role appears under roles. Using the links  associated  with it, you can rename, edit permissions, users and delete the role.
    Image Removed

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 .
Image Removed

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
Shared:Managing Users, Roles and Permissions (V3)
Shared:Managing Users, Roles and Permissions (V3)
Child pages (Children Display)