Creating User Roles

Objective

After completing this lesson, you will be able to create user roles

Create User Roles

Business Scenario

Your company is planning to develop a set of cloud-based applications based on the SAP Cloud Application Programming Model (CAP), and these applications will be deployed to the SAP Business Technology Platform (SAP BTP) as extension applications for the SAP Core back end systems.

In this exercise, you will perform the following task: Create user roles to protect your service entities.

Now, you can create roles to define different authorizations for your application. For example, you might want to ensure that some people can view data but are not able to edit them.

Note

Note that some of the services that this learning journey links to can incur costs.

Task 1: Create and Configure User Roles

Steps

  1. Assign new roles to the RiskManagementService.

    1. If not there, go back to the Storyboard tab of the application.

      There are two ways to open the Authorization editor:

    2. Choose the Open Editor dropdown menu in the upper left part of the storyboard and select User Roles.

      System screenshot
    3. Select the role icon (little personicon) next to RiskManagementService in the Services tile.

      System screenshot

      In both cases, the Authorization Editor opens.

    4. In the Authorization Editor, make sure the RiskManagementService is opened.

    5. Choose the personicon on the right, and select New Role to add a new role.

      System screenshot
    6. Enter the role name, for example, RiskViewer.

    7. Choose Save.

      System screenshot
    8. Choose again the personicon on the right, and select New Role to add a new role.

    9. Enter the role name, for example, RiskManager.

    10. Choose Save.

      System screenshot
  2. Grant permissions on the Service Entities for Risks and Mitigations.

    1. Select the entity Risks from the tree on the left side.

      System screenshot
    2. Choose the person icon on the right, and select the RiskManager role you created before.

      System screenshot
    3. Make sure that the privileges are selected as All.

    4. Choose again the person icon on the right, and select the RiskViewer role you created before.

    5. Make sure that the privileges are selected as Read.

      System screenshot
    6. Select the entity Mitigations from the tree on the left side.

      System screenshot
    7. Choose the person icon on the right, and select the RiskManager role you created before.

      System screenshot
    8. Make sure that the privileges are selected as All.

    9. Choose again the person icon on the right, and select the RiskViewer role you created before.

    10. Make sure that the privileges are selected as Read.

      System screenshot

Log in to track your progress & complete quizzes