BTP Security Part 1: Identity, Trust and Platform Access
Free sample lesson · open to everyone
Understand the BTP security model: platform users (who administer accounts) vs business users (who use apps), identity providers and trust, the authorization chain from scopes to roles to role collections, and the services involved (SAP Cloud Identity Services, XSUAA).
In this lessonShow sectionsHide sections
Visual overview
The situation: a real project scenario
A mid-size company assigned role collections to 300 users individually; leavers kept access for months. Switching to IdP group mapping tied access to HR-driven directory changes.
Explanation
This series looks at identity, trust and access across BTP in three parts: this first part covers identity, trust and platform access; part 2 covers trust, OAuth clients and role collections across subaccounts; and part 3 covers app-to-app security with OAuth2.
BTP distinguishes platform users, who administer global accounts and subaccounts, from business users, who simply use the applications built on the platform. Each subaccount trusts an identity provider for authentication — typically SAP Cloud Identity Services' Identity Authentication service, itself federated to the corporate identity provider.
Authorization then flows through a defined chain: an application defines scopes, which are grouped into role templates, which are turned into roles, which are bundled into role collections, which are finally assigned either to individual users or, better, to identity-provider groups.
For applications secured by it, XSUAA issues OAuth tokens carrying these scopes, and it's those scopes the application checks at runtime.
Assigning role collections to individual users rather than to groups doesn't scale and tends to leave orphaned access behind when people change roles or leave, so mapping role collections to identity-provider groups is the better practice — joiners and leavers are then handled automatically through the corporate directory rather than through manual cleanup in BTP.
A related governance risk is leaving default identity-provider users, such as those from the SAP ID service, active after go-live, since they bypass whatever corporate controls were put in place.
A good way to internalize this is to review the trust configuration of a subaccount, inspect a role collection and the roles inside it, and then map that collection to an identity-provider group and test logging in — the checkpoint being that a user only gets access by virtue of their group membership, not through any direct assignment.
Expert visual walkthrough
BTP access layers
BTP Security · Chapter-specific technical teaching map
Architecture hierarchy
Identity provider
Subaccount trust
Role collections
Application authorization
Tutor's chapter takeaway
Understand the BTP security model: platform users (who administer accounts) vs business users (who use apps), identity providers and trust, the authorization chain from scopes to roles to role collections, and the services involved (SAP Cloud Identity Services, XSUAA).
In a real project
A mid-size company assigned role collections to 300 users individually; leavers kept access for months. Switching to IdP group mapping tied access to HR-driven directory changes.
Watch out for
• Individual assignments. • Default IdP left active. • Broad role collections. • Mixing platform and business access. • No reviews.
Code example
===== AUTHORIZATION CHAIN =====xs-security.json scope $XSAPPNAME.Display → role template Viewer → role → role collection "Orders_Viewer" → IdP group "APP_ORDERS_VIEW" ===== CLI =====btp list security/role-collection --subaccount <id> # lists role collections in the subaccount so you can confirm Orders_Viewer exists before assigning itbtp assign security/role-collection Orders_Viewer --to-group APP_ORDERS_VIEW --of-idp <origin> # maps an IdP group to the role collection, completing the chain from identity to app authorizationWatch out
Common mistakes
- Individual assignments.
- Default IdP left active.
- Broad role collections.
- Mixing platform and business access.
- No reviews.
Do this
Best practices
- Group mapping.
- Corporate IdP via IAS.
- Fine-grained collections.
- Separate admin roles.
- Periodic access reviews.
In the interview
Interview angle
Questions: "Platform vs business users?", "Explain scopes, roles and role collections", "How does trust work?"
Strong answer: user types, trust, authorization chain, tokens, governance.
Practice this lesson
Quick check
0 of 3 questions attempted
Question 1 of 3
In SAP BTP's authorization model, what is the correct relationship among role templates, roles, and role collections?
Question 2 of 3
What is the correct order of the BTP authorization chain from app to user?
Question 3 of 3
What is the primary function of the Identity Provisioning service (IPS) within the SAP BTP security landscape?
Practise this in an interview
Answer in your own words and get instant feedback, the way an interviewer would judge it.
1A company assigns BTP role collections to hundreds of users individually and leavers keep access. Explain the BTP security model and your fix.
2What are the core concepts of BTP Security for Integration and Application Architecture, and how would you explain them clearly in an SAP interview?
See it in code
Each example starts from a requirement, shows the design, then the code step by step with a plain-language explanation of every part.
Was this lesson helpful?
Keep exploring
Interview questions on this topic
Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.