Usage Scenario
You will add a role collection to access your deployed application through the SAP BTP cockpit with an authenticated and authorized user.
As the name implies, role collections "group together authorizations for resources and services"1.
Role collections consist of individual roles. Role collections are account-specific.
Role collections that exist in the global account don’t exist in the subaccounts. Likewise, role collections in subaccounts aren’t available in the global account.
The way this application is designed, the deployed service can only be accessed when a user has a corresponding role collection assigned. If users tried to open the application without this authorization, they would get a Forbidden
message. How do you assign the role collection to a user?
Exercise Options
You can perform this exercise in two ways:
- Live Environment – using the instructions provided below, you can perform the tasks in the SAP BTP Free Tier account
- Platform Simulation – follow the step-by-step instructions within the simulation
We are strongly recommending first performing the exercise in the live environment.
Live Environment
Follow the below instructions to assign a role collection.
Prerequisite
Please make sure that you have already added the UI and approuter to the mta.yaml
file.
Steps
In your subaccount in the SAP BTP cockpit tab, navigate to the Security tab. Choose Users and click on your username.
After clicking on your user, a new view displays on the right side. Click on the Assign Role Collection button.
From the list, choose RiskManager-<space-name>. Click on the Assign Role Collection button.
Now you are ready to access the application!
Reopen the
risk-management
application and verify if you now have access to your applications' data.Select your space.
Verify that the risk-management application, which has been deployed, is up and running.
Choose the row
risk-management
.Choose the link under Application Routes.
Open the application and then in the application, click on the Go button.
You should see the final deployed application with the data:
Note
In some cases, your browser might still have cached the authorization information from the previous app call. When you still receive theForbidden
message, try to either delete your browser cache and cookies or to close and reopen your browser.Platform Simulation
Click on the Start button below to open a simulation of the platform. Then follow the step-by-step instructions to assign role collections.
ExerciseStart Exercise
Result
You have assigned a role collection to access the application through the SAP BTP cockpit.