---
title: Create test users and roles
description: "Estimated time to complete: 10 minutes"
component: pingoneaic
page_id: pingoneaic:use-cases:use-case-test-users-and-roles
canonical_url: https://docs.pingidentity.com/pingoneaic/use-cases/use-case-test-users-and-roles.html
keywords: ["Users", "Roles", "Assignments", "Setup &amp; Configuration"]
page_aliases: ["implementation:use-case-users-and-roles.adoc"]
section_ids:
  test-users-and-roles-description: Description
  test-users-and-roles-goals: Goals
  test-users-and-roles-prerequisites: Prerequisites
  test-users-and-roles-tasks: Tasks
  test-users-and-roles-register-user: "Task 1: Create new users"
  test-users-and-roles-register-role: "Task 2: Create a role"
  test-users-and-roles-validation: Validation
  test-users-and-roles-explore-further: Explore further
  test-users-and-roles-reference: Reference material
---

# Create test users and roles

## Description

Estimated time to complete: 10 minutes *(tooltip: This assumes you complete the prerequisites beforehand.)*

In this use case, you create test users and roles, assign users to roles, and sign on to the hosted account pages as one of the users.

## Goals

After completing this use case, you will know how to do the following:

* Create new users

* Create a role

* Assign the role to the users

## Prerequisites

Before you start, make sure you have a basic understanding of these Advanced Identity Cloud concepts:

* Advanced Identity Cloud admin console

* Hosted pages

## Tasks

### Task 1: Create new users

In this task, you create two new users.

1. In the Advanced Identity Cloud admin console, go to [icon: people, set=material, size=inline] Identities > Manage.

   ![Add new user](_images/test-users-and-roles/create-user.png)

2. On the Manage Identities page, click [icon: people, set=material, size=inline] Alpha realm - Users and [icon: add, set=material, size=inline] New Alpha realm - User.

3. On the New Alpha realm - User page, enter the following information for the user, and then click Save:

   | Field         | Value                    |
   | ------------- | ------------------------ |
   | Username      | `acruse`                 |
   | First Name    | `alex`                   |
   | Last Name     | `cruse`                  |
   | Email Address | `alex.cruse@example.com` |
   | Password      | `Secret12!`              |

4. Go back to the New Alpha realm - User page and repeat the last step to add another user with the following values:

   | Field         | Value                    |
   | ------------- | ------------------------ |
   | Username      | `braman`                 |
   | First name    | `bina`                   |
   | Last name     | `raman`                  |
   | Email Address | `bina.raman@example.com` |
   | Password      | `Secret12!`              |

### Task 2: Create a role

In this task, you create a role called `employee`. Roles define privileges for user and device identities. Although the role isn't required for this use case, you can bulk assign users to an application when they are assigned a role.

1. In the Advanced Identity Cloud admin console, go to [icon: people, set=material, size=inline] Identities > Manage.

   ![Add new role](_images/test-users-and-roles/create-role.png)

2. On the Manage Identities page, click [icon: assignment_ind, set=material, size=inline] Alpha Realm - Roles > [icon: add, set=material, size=inline] New Alpha realm - Role.

3. On the role page, enter the following information for the role and then click Next:

   | Field       | Value                                            |
   | ----------- | ------------------------------------------------ |
   | Name        | `employee`                                       |
   | Description | `Role granted to workers on the company payroll` |

4. Skip the option to assign the role conditionally, and click Next.

5. Skip the option to assign the role temporarily, and click Save.

   The `employee` role page is displayed.

6. Click Role Members > [icon: add, set=material, size=inline] Add Role Members.

7. Select your users from the drop-down list and then click Save.

   The role is assigned to the users.

Check in

At this point, you:

[icon: check, set=fa]Created two new users

[icon: check, set=fa]Created a role

[icon: check, set=fa]Assigned the role to the users

## Validation

To validate your work:

1. In the Advanced Identity Cloud admin console, go to [icon: account_tree, set=material, size=inline] Journeys and click on the `Login` journey provided as default in Advanced Identity Cloud.

2. Copy and paste the `Preview URL` into an incognito window.

   The sign-on page for the tenant is displayed.

3. Sign on to the tenant as one of the new users and view the profile page for the user.

## Explore further

### Reference material

| **Reference**                                       | **Description**                             |
| --------------------------------------------------- | ------------------------------------------- |
| [Roles](../identities/roles-assignments.html#roles) | Information about roles                     |
| [Login](../journeys/journeys.html#login)            | Information about the default login journey |
