Managing Users and Authorizations on SAP BTP

Objectives

After completing this lesson, you will be able to:
  • Manage users in a Global Account
  • Manage users in Directories
  • Manage users and authorizations in Subaccounts
  • Handle authorization assignments with Role Collections
  • Act in emergency situations

User Management in a Global Account

The security recommendation is, before adding further platform users from the default identity provider to your global account, first get and connect your custom tenant of SAP Cloud Identity services to the account. Then either create users for yourself and other people in your tenant or connect it to your corporate identity provider. Finally add relevant users from your custom identity provider to your SAP BTP account and assign authorizations to them.

Note

Typically you should already have a tenant of SAP Cloud Identity Services within your company. If not you can request one - further help you find in product documentation.

Note

Within this lesson, we focus on assigning authorizations manually via SAP BTP Cockpit. Provisioning and federation approach are not further explained in this learning journey.
Screenshot from SAP BTP cockpit Global Account screen highlighting the user management and user creation sections.

In a Global Account, you can create platform users and assign predefined role collections to them.

To create a user, you need to navigate to SecurityUsers, and choose the Create button in the top-right corner.

When creating a new user, you always must specify the identity provider. You can change the identity provider in the Identity Provider field.

Screenshot from SAP BTP cockpit Global Account screen highlighting Role Collections.

There's one predefined role collection for administrative tasks and one for read-only access to the Global Account.

With the Global Account Administrator role collection, the user can perform the following tasks:

  • Create new and edit existing Subaccounts, within the Global Account
  • Manage entitlements
  • Manage users
  • Manage role collections

With the Global Account Viewer role, the user only gets read access to the mentioned items.

With the authorizations from predefined roles for Global Accounts, the user is not permitted to access any Subaccount that has been not created by them.

User Management in a Directory

Two screenshots: One showing where to enable User Management of a Directory and the other highlighting where to Create a Directory User.

You can create Directories for better structuring. Furthermore, you can enable user management for the directories. You can create and maintain directory administrators and viewers. This is an optional step, and you can always disable it again if you need to.

If you want to have more directory administrators next to yourself, enable user management. If not, keep it disabled. If you’re using the entitlement management within the directories, it is highly recommended to have more than one directory administrator.

User Management in a Subaccount

When adding a new user, you always must specify the identity provider. You can change the identity provider in the Identity Provider field.

Screenshot showing how to create a user.

If a user should be able to access a Subaccount, the user needs to be added under SecurityUsers on the Subaccount level.

To add a new user to the Subaccount, perform the following steps:

  1. Open the SAP BTP cockpit.
  2. Go to your Subaccount.
  3. Choose SecurityUsers.
  4. Choose Create. The SAP BTP Cockpit displays a dialog box where you can enter the user data.
  5. Enter the user e-mail in the User Name and E-Mail fields.
  6. Choose the identity provider where the user is stored. The dropdown list in the Identity Provider field displays the identity providers for which the trust connection has been configured in the Subaccount.

    If you've configured a custom identity provider in a Global Account and you want to create a new platform user for the Subaccount, choose the IAS tenant in the Identity Provider field that's used for platform users.

  7. Choose Create.

You can now proceed with assigning Role Collections to the new user.

Note

Users from the SAP ID service are identified by their e-mail address and not their user ID. This is why, when using the default identity provider to create a new user, you need to enter the e-mail address as the user name. If you have multiple user accounts that share the same e-mail address in SAP ID service, they all get the same authorizations.

For more information, see Create Users.

Default Role Collections in a Subaccount

Screenshot of SAP BTP cockpit Subaccount screen highlighting Role Collections.

There are several predefined role collections that you can use when adding platform users to a Subaccount. These are the two most important ones:

  • Subaccount Administrator
  • Subaccount Viewer

If you assign the Subaccount Administrator role collection to a user, you grant the user administration permissions for the Subaccount. The user is then able to view and configure the entitlements for the Subaccount, create users, assign role collections, configure trust, create destinations, and so on.

The user who creates the Subaccount automatically gets the administrator permissions. All other users must explicitly be added as Subaccount users and have the corresponding role collections assigned.

After initially deploying your accounts, there are also other default role collections available in the cloud management tools. If you do not want to provide all administration rights to a user, but narrow it down to a specific task (for example, connectivity administration), you only assign the relevant role collection.

Create Administrator User in a Subaccount

Business Example

User management in SAP BTP is done on each level separately. Therefore, to ensure that administrators can log on to the Subaccount and perform administrative tasks, you must create users on the Subaccount level and provide the necessary authorizations by assigning role collections. To assign administrator authorizations to a user, you make use of the predefined default roles and role collections from SAP BTP.

Task 1: Create a Platform User in a Subaccount

Assigning Application-Specific Authorizations to Users

Two screenshots from SAP BTP cockpit Subaccount Instances and Subscriptions showing how to manage roles for an application.

After the application is subscribed, it appears in the Instances and Subscriptions area. To review the roles that are delivered with the application, you can choose the three dots and select Manage Roles next to the subscribed application.

On the Details screen (which you can expand), you'll see a list of Role Templates, Role Names, and the Description delivered with the applications.

In the Attributes column, you can see if a role has been created from a role template and if any attributes have been defined for the role.

Caution

This is only available to services which work without a trust to a custom identity provider. As alternative you need to consult the services product documentation and find the topic of authorizations or pre-delivered roles and role collections.

Note

If you inspect roles like this, not all of the application roles might be displayed. To view all roles within a Subaccount, navigate to SecurityRoles.
Two screenshots from SAP BTP cockpit Subaccount Role Collections highlighting Roles and Role Collections.

In the SAP BTP cockpit, you can display information about the role collections that have been maintained as well as the roles available in a role collection by navigating to SecurityRole Collections and SecurityRoles.

In SecurityRoles, you can find additional information, such as: which templates the roles are based on, and which applications the roles apply to.

In SecurityRole Collections, you can display available role collections and see which roles they include. From here, you can assign role collections to users to grant them authorizations.

Inspect and Assign Predefined Role Collections for Applications

Business Example

One of the key users in your company should do an implementation in SAP Build Work Zone, standard edition. For doing so, they need the corresponding access rights. As they do not need access rights on administrative or platform level, they can be identified as a business user. You're going to investigate which roles are needed and assign the according ones to the business user. In the second half of the exercise, you'll get in the shoes of this business user and test whether the new authorizations work correctly.

Task 1: Inspect the Roles Required for an Application

Task 2: Assign Role Collections Required for Application to a User

Creating Custom Role Collections

Two Screenshots from SAP BTP cockpit Subaccount Role Collections. The first screenshot highlights Role Collections and the second highlights Name of custom Role Collection.

When assigning role collections, administrators can assign predefined role collections. However, predelivered role collections don't always exist, or they don't meet the business requirements. Therefore, administrators can create new role collections by copying the existing ones or creating them from scratch.

Administrators then add predelivered roles to their own role collection. These can be default roles that already exist and are used in other role collections, or these can be roles that are created from a template. Afterward, administrators can assign the role collection to the appropriate user. A user can have one or many role collections assigned. Roles and permissions contained in role collections are then automatically assigned to the user.

For more information, see Define a Role Collection.

Screenshot of SAP BTP cockpit Subaccount Roles showing how to work with roles. Roles, Role Details, and Adding role to Role Collections are highlighted.

In the navigation pane, under SecurityRoles, you can see a complete list of all existing Roles, sorted by the application name the roles belong to. It also contains the role template, role names, and role description.

Emergency Situations

Screenshot showing the Subaccounts tab. Add Me as Admin is highlighted.

You might face the emergency that you urgently need to perform some operations in an account or environment while none of the existing administrators are available, for example because of sickness or because they left the company.

In most cases, you can help yourself, namely when there is an administrator of a higher level in the account hierarchy available. Global account administrators can add themselves as administrators to all contained Subaccounts using the "Add Me as Admin" option on the Subaccount in SAP BTP cockpit (details).

Hint

This feature isn't available if it has been disabled for your global account. To disable this feature, send an opt-out request using the software component BC-NEO-CIS-OPS. You create this request like other requests and incidents in SAP for Me.

Similarly, Subaccount administrators can update their environments to add further administrators. The exact steps depend on the environment:

  • Cloud Foundry
  • Kyma
  • ABAP: If managed using SAP Cloud Identity services (IPS), assign the required authorizations from there. Otherwise create a support ticket.

The only special case is when no global account administrator is available. In that case, there is no "parent" account in SAP BTP, so you need a different way to get access again. If you have got your global account based on a contract with SAP, you can add another administrator using SAP for Me (details: SAP Note 2669325).