HOW TO AUTOMATICALLY ASSIGN ROLE COLLECTIONS IN SAP BTP
SAP Business Technology Platform (SAP BTP), previously known as SAP Hana
Cloud Platform before transitioning to SAP Cloud Platform, is a comprehensive
offering that encompasses four key technology portfolios:
2. Application Development & Integration
3. Analytics
4. Intelligent Technologies.
SAP BTP provides users with a suite of tools, services, and products aimed at
facilitating the development, integration, and extension of both SAP and third-party
applications.
The services and solutions offered by SAP BTP are accessible across various cloud
infrastructure providers. Its multi-cloud foundation caters to diverse environments,
including Cloud Foundry, ABAP, and Kyma, accommodating multiple regions and
offering a wide range of programming languages for developers to choose from.
Here is structure of the SAP BTP:

SAP BTP has two types of users, i.e., Platform Users and Business Users.
Business users are those who use the applications that are deployed to SAP BTP. For example, users of subscribed apps or services, such as SAP Web IDE, are business users.
1) How do users obtain access?
Understanding Role Collections in SAP BTP
Role collections can be assigned either from the BTP account or through Groups via IAS or the third party Identity Provider. Assigning role collections directly via BTP account is an easy and a direct activity. Here are the steps:
2. Navigate to Security > Users
3. Select the User from the list and in the right window, navigate to Role Collections
4. Click … (three dots) and choose Assign Role Collection
5. Select the Role collections from the list as shown in below figure:


The Importance of Automation
Automating role assignments in SAP BTP offers several benefits:
Efficiency | Automation eliminates the need for manual intervention, saving time and reducing the risk of errors associated with manual role assignments. |
Scalability | As organizations scale their operations, automation ensures that role assignments remain consistent and manageable, regardless of the size of the user base. |
Reduces Manual efforts | It automates assignment and removal of role collections to users via groups. |
Enhanced Security | By automating role assignments, access privileges will be revoked automatically when users change roles or leave the company, as the assignment is always via groups. |
How to implement automatic Role collecting assignment in SAP BTP?
NOTE: I assume the Corporate/Custom IDP is already configured and setup in the BTP sub-account. If the BTP is using Default Identity provider as shown below, you can’t use the auto Role collection assignment feature.

2. Click Groups tile
3. Create User Groups by clicking + Create button
4. Enter the Group Name, Display Name, and Description.



7. Click New Role Collection Mapping button.
8. Select Role Collection, Enter “Groups” as Attribute and a value (free text) as shown below:


Whenever users are assigned to groups in IAS (Identity Authentication Service), a
Ghost ID will be automatically created for the respective user in the corresponding
application. The Ghost ID will be mapped with the appropriate role collections,
granting the user the respective access automatically.