In this exercise, you will use the Master Portal to create a new tenant. Then, you will use the tenant's Admin Portal to create a new user and modify the user's permissions.
Outcomes
You should be able to create a new 3scale tenant, create a new user for the tenant, and modify the user's permissions.
As the student user on the workstation machine, use the lab command to prepare your system for this exercise.
This command ensures that the workstation machine is ready and the OpenShift cluster is available.
At the same time, it deploys an email interceptor that you will use in the exercise.
[student@workstation ~]$ lab start applications-tenants
Procedure 2.5. Instructions
Log in to the 3scale Master Portal by using the default installation password.
Because the start function restarts some OpenShift pods to deploy the email server, the Master Portal might be temporary unavailable.
If the Master Portal is not available, then try again in a few minutes.
Log in to OpenShift as the admin user.
[student@workstation ~]$ oc login -u=admin -p=redhat \
--server=https://api.ocp4.example.com:6443
Login successful.In a command-line terminal, retrieve the master password from the system-seed OpenShift secret.
[student@workstation ~]$ oc get secret system-seed -n 3scale \
--template={{.data.MASTER_PASSWORD}} | base64 -d
...output omitted...Copy the password.
In a web browser, navigate to https://master.apps.ocp4.example.com/.
Log in with the following credentials:
Username:
master
Password: Password retrieved in the previous step
Create a new tenant called do240 by using the Master Portal.
Remember that in 3scale a tenant is a master account.
Click to display the drop-down menu. Then, click .
The Accounts page is displayed by default.
This page lists all the available master accounts.
Click to create a new account.
Complete the form according to the following information:
Username: do240-user
Email: do240@redhat.com
Password: do240
Password confirmation:
do240
Organization/Group name:
do240
Then, click . Remember that the organization name provided is used to create the Admin Portal subdomain.
The do240 account page gives some information, such as the public domain of the tenant or the Admin Portal URL.
By default, 3scale creates two users: do240-user, with the credentials that you provided previously, and another one called 3scale Admin, which is used by the system.
Both users have admin privileges.
Activate the do240-user so that you can use it to access the do240 tenant Admin Portal.
Click in the top pane. The page displays the two created users for the tenant.
![]() |
Click in the do240-user row to activate the user.
Now you can use this user to access the do240 tenant Admin Portal.
Verify that you can log in to the do240 tenant Admin Portal.
In a new tab, navigate to https://do240-admin.apps.ocp4.example.com, the do240 tenant Admin Portal.
Log in with the credentials that you provided in the previous steps.
Username:
do240-user
Password:
do240
If the How does 3scale work page displays, click to close it.
The dashboard shows the default API product.
Invite a new user to the do240 tenant by using the Admin Portal.
Then, use the link provided in the email to join the do240 tenant.
In the do240 tenant Admin Portal, click to display the dropdown menu.
Then, click .
Click , and then click .
This section shows all the users that can log in to the Admin Portal.
It is synchronized with the Users section of the do240 tenant in the Master Portal.
In the left pane, click , and then click .
In a real-world scenario, you should complete the form with the email of the person that you want to have access to the tenant.
For the purpose of this exercise, use the gls@redhat.com email address.
Then, click .
In this exercise, the email is not sent.
The lab start function that you executed at the beginning of the exercise deploys an email interceptor.
You can fetch the email that would be sent in a production environment by using the email interceptor.
Log out of the do240 tenant Admin Portal.
Click on the Session icon in the top pane, and then click .
In a command-line terminal, run the /scripts/get-emails.sh script in the DO240-apps repository to get the emails sent by 3scale.
[student@workstation ~]$~/DO240-apps/scripts/get-emails.sh---------- MESSAGE FOLLOWS ---------- ...output omitted... You have been invited to join Provider Name on 3scale platform.Please sign up by following this link: https://do240-admin.apps.ocp4.example.com/p/signup/c9d30638114c6c9433867c5775689278If you have any problems signing up or believe you received this email erroneously, please open a Support Case at https://access.redhat.com/support. Thank you, The 3scale API Team. ------------ END MESSAGE ------------
The email contains a link to join the tenant. Copy the link.
In a web browser, open the link from the previous step. Complete the sign-up form according to the following data:
If you are still logged-in with the do240-user, then you cannot see the sign-up form.
Log out first and try again.
Username: gls-user
First name: GLS
Last name: Red Hat
Password: gls-password
Password confirmation: gls-password
Then, click . You are redirected to the log-in page.
Log in to the do240 tenant Admin Portal with the credentials from the previous step.
Username: gls-user
Password: gls-password
By default, invited users get the member role assigned.
Therefore, you do not have permissions to see any products.
![]() |
Log out of the do240 tenant Admin Portal.
Click on the Session icon in the top pane, and then click .
Change the gls-user user permissions, so that the user can view the API product.
Log in with the administrator credentials again.
Username:
do240-user
Password:
do240
Click to display the dropdown menu. Then, click .
Click , and then click .
The GLS Red Hat user (gls-user) is now displayed in this page.
Click over its name to edit it.
The Administrative section allows you to change the role of user.
The Admin role provides full access to the tenant.
The Member role allows you to choose the sections that the user can access.
Click the Create, read, update and delete developer accounts and applications of selected API products checkbox.
![]() |
When you click this checkbox, the All current and future API products check is displayed.
With this option, you grant access to all the products.
![]() |
Then, click .
Log out of the do240 tenant Admin Portal.
Click on the Session icon in the top pane, and then click .
Verify that the gls-user user can view the API Product.
Log in with the gls-user credentials:
Username:
gls-user
Password:
gls-password
The Dashboard section displays the API Product.
This concludes the guided exercise.