Skip to content

Manage users

This guide walks you through how you can manage user accounts as an administrator.

Onboard users

There are three ways to onboard a user:

  • The user can self-register via the My Account portal or the login page of an application if self-registration is enabled in the organization. Learn how to configure self-registration.
  • An administrator can onboard users from a secondary user store by configuring a secondary user store in WSO2 Identity Server.

    Note

    If the secondary user store access type is read-only, you cannot update the user profiles of users onboarded from this read-only user store.

  • An administrator can onboard users from the WSO2 Identity Server Console.

Let's look at how administrators can onboard users from the WSO2 Identity Server Console.

Onboard single user

  1. On the WSO2 Identity Server Console, go to User Management > Users.
  2. Click Add User button and select Single User option and provide the following details:

    Add user

    Note

    • A username is always unique to the organization and you can't change the username once it is created.
    • Instead of using a username to login, you can configure email address as the username. Then, you will be asked to enter the email address when logging in.
    • The user can change the password set by the administrator from the My Account Portal.
  3. You can either request the user to set the password or set one on the user's behalf.

    • Invite user to set their own password:

      • Invite via email: If this option is selected, an email with a confirmation link will be sent to the provided email address. The user can use this link to set up a new password.

        Note

        You need to enable the Invite user to set password feature if you haven't done so already to use this option. Learn how to configure invite user to set password.

      • Invite offline: If this option is selected, the administrator will receive an invitation link at the end of the user registration process. This link can then be shared with the user.

    • Set a password for the user: If this option is selected, the administrator can set a password for the user. The user will have the option to change this password from the My Account Portal.

  4. Add the user to a group in the next step. You will not see this option if you haven't created any groups in WSO2 Identity Server.

  5. Review the summary and click Finish.

    Note

    If you have selected Invite offline or decided to set a password for the user, you can copy the corresponding information at the Summary page of the wizard and share with the user.

Onboard multiple users

In addition to adding a single user, you can onboard multiple users at once, either manually or by using a CSV file. This is especially useful for large organizations where bulk operations can save time and reduce the effort of adding users one by one.

Note

You need to enable the Invite user to set password feature if you haven't done so already to add multiple users. Learn how to configure invite user to set password.

Add multiple users

Add multiple users manually

  1. On the WSO2 Identity Server Console, go to User Management > Users.
  2. Click on the Add User button and select Multiple Users option.
  3. Switch to the Manual tab.
  4. Enter the email addresses of the users you want to invite. Press Enter after each email to add it to the list.
  5. Specify the groups for the users by entering the group names. Press Enter after each group to add it to the list.
  6. Click Add to send out the invitations.
  7. An email with a confirmation link will be sent to the provided email addresses, allowing the users to set their own passwords.

Add multiple users using a CSV file

  1. On the WSO2 Identity Server Console, go to User Management > Users.
  2. Click on the Add User button and select Multiple Users option.
  3. Switch to the File Based tab.
  4. Click Upload CSV File or drag and drop a CSV file into the designated area.
  5. Ensure your CSV file is formatted correctly, with headers that correspond to user attributes. These attributes must be mapped to local attributes.
  6. Click Import to add the users to the system.
  7. An email with a confirmation link will be sent to the provided email addresses, allowing the users to set their own passwords.

Assign groups

Groups are useful when you wish to assign a certain permission level to multiple users. A user can be a member of multiple groups in the organization. Learn how to manage groups.

To assign users to groups:

  1. On the WSO2 Identity Server Console, go to User Management > Users.
  2. Click Edit for the user.
  3. Go to the Groups tab and click + Assign Group.
  4. Select the relevant groups and click Save.

    Add user

Manage user profiles

A user profile consists of attributes that represent the details of the user such as username, email address, contact information, other custom attributes, etc.

Note

Administrators can configure the list of attributes that should be available in the user profile. See Manage attributes for details.

View profile details

Administrators can view the user profile of any user as follows:

  1. On the WSO2 Identity Server Console, go to User Management > Users.

    Note

    If you have connected a remote user store, and want to filter the users in your remote user store, select your user store from the drop-down menu.

  2. Select the user to view the profile.

    view-user-profile

Update the profile

An administrator can update the profile of a user via the WSO2 Identity Server Console.

To update the user profile:

  1. On the WSO2 Identity Server Console, go to User Management > Users.

  2. Find the user's account and click Edit.

  3. Update the information on the user profile.

  4. Click Update to save.

Reset the user's password

Administrators can reset a user's password or initiate the password reset process from the WSO2 Identity Server Console.

To reset the password:

  1. Click Reset password at the bottom of the user's profile.

  2. Select a method to reset the user password:

    • Set a new password for the user:
      If this option is selected, the owner or an administrator can set a new password for the user.

    • Invite user to reset the password:
      If this option is selected, a password reset request can be sent to the user using one of the password recovery methods you have enabled for the organization.

      Note

      Enable the relevant password recovery methods by navigating to Login & Registration > Password Recovery.

      Reset password

  3. Click Reset Password.

Using the API

You can also use WSO2 Identity Server's SCIM API to initiate the admin initiated password recovery flow.

  1. Get an access token with the internal_user_mgt_update scope.

  2. Use the obtained access token to execute the following cURL.

    curl --location --request PATCH 'https://localhost:9443/scim2/Users/<user_id>' \
    --header 'Content-Type: application/json' \
    --header 'Authorization: Bearer <access_token>' \
    --data '{
       "schemas": [
          "urn:ietf:params:scim:api:messages:2.0:PatchOp",
          "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"
       ],
       "Operations": [
          {
                "op": "add",
                "value": {
                   "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User": {
                      "forcePasswordReset": true
                   }
                }
          }
       ]
    }'
    

Upon successful execution of the cURL the user will receive an email to reset their password.

Lock a user account

When you lock a user's account, the user will no longer be able to access any applications or the My Account portal.

To lock a user account:

  1. On the WSO2 Identity Server Console, go to User Management > Users and select the user.
  2. Enable the Lock user toggle at the bottom of the user's profile.

    Lock user

  3. Select the checkbox to confirm your action.

  4. Click Confirm.

    Note

    You can unlock a user account by switching the Lock user toggle off.

Delete a user

A user account can be deleted by administrators. Once an account is deleted, the action is irreversible.

To delete a user account:

  1. On the WSO2 Identity Server Console, go to User Management > Users and select the user.
  2. Click Delete User at the bottom of the user's profile.

    Lock user

  3. Select the checkbox to confirm your action.

  4. Click Confirm.