Tenants identity and roles — SAP Guided Tutorial
Free sample lesson · open to everyone
Setting up CX tenants for development, test and production, connecting identity through SAP Cloud Identity Services, and designing roles and data access so sales and service users see the right accounts and cases.
In this lessonShow sectionsHide sections
Visual overview
The situation: a real project scenario
A test tenant was accidentally connected to production S/4HANA, and test opportunities created real sales orders. Documented tenant pairing and separate integration credentials per environment prevented a repeat.
Explanation
Before any sales or service process can be configured, users need a tenant to work in, a way to log in, and access that matches their job and territory — getting this foundation wrong undermines everything built on top of it.
CX implementations typically use at least three separate tenants: a development or configuration tenant for building and unit testing, a test tenant connected to an S/4HANA test system for integration testing, and a production tenant connected only to production systems. Keeping these pairings strict matters more than it sounds — if a test tenant is accidentally wired to a production ERP, test activity (like creating a test opportunity) can generate real sales orders, deliveries, or even invoices, which is a costly mistake to unwind.
Authentication usually runs through SAP Cloud Identity Services, which acts as an identity provider proxy in front of the corporate identity provider, enabling single sign-on. User lifecycle should be driven from HR or the corporate IdP so that when someone leaves the company, their CX access is revoked automatically rather than relying on someone remembering to deactivate them manually. Technical users used for integrations should be created and managed separately from business users, with their own credentials scoped to just what the integration needs.
Roles grant functional access by job: sales rep, sales manager, service agent, service lead, administrator, and so on. Admin rights should be kept narrow and logged, since an over-privileged admin account is both a security risk and an audit problem. Every role should be tested against real tasks before go-live, not just reviewed on paper.
Data access is a separate layer from functional roles: it's typically restricted by organisational criteria such as territory, sales organisation, or service team. A sales manager should see their team's full pipeline; a rep should see their own accounts and their territory's, not another region's. The only reliable way to confirm this works is negative testing — logging in as two users in different territories and checking that each one is blocked from seeing the other's data, not just that they can see their own.
Watch out
Common mistakes
Connecting a test tenant to a production S/4HANA system: test records (like opportunities or orders) then create real transactions in the live ERP, which can mean real deliveries or invoices going out by mistake. Fix: document tenant-to-system pairing explicitly and verify it before any testing begins, especially after an environment refresh.
Creating users manually without a lifecycle process tied to HR or the corporate IdP: leavers keep access long after they've left, which is both a security gap and an audit finding waiting to happen. Fix: drive provisioning and deprovisioning from the authoritative HR/IdP source, not ad hoc requests.
Granting broad access to all accounts "to keep things simple": this defeats territory management, lets reps see competitors' deals or confidential pricing outside their patch, and makes pipeline reports meaningless because everyone sees everything. Fix: design data access by organisational unit from day one and test it with negative cases.
Sharing admin accounts among multiple people: this removes any audit trail for configuration changes and makes it impossible to trace who changed what. Fix: issue individual named admin accounts and log their actions.
Do this
Best practices
Document exactly which tenant connects to which backend system, and re-verify that pairing after any environment refresh or sandbox rebuild — this single check prevents the costly mistake of test activity creating real ERP transactions.
Automate user provisioning and deprovisioning from HR or the corporate identity provider rather than manual tenant administration, so access removal for leavers is immediate and auditable rather than dependent on someone remembering.
Design data access by territory or organisational unit from the start, and prove it works with negative tests — log in as users in different territories and confirm each is blocked from the other's accounts, opportunities and cases, not just that their own data shows up correctly.
Keep administrator rights limited to a small, named group and ensure admin actions are logged, so configuration changes can always be traced to a specific person.
In the interview
Interview angle
Interviewers often probe this with "Walk me through how you'd set up tenants and access for a new CX rollout." A weak answer just says "we create roles and give people access." A strong answer distinguishes the tenant landscape (dev/config, test tied to an ERP test system, production tied only to production) from the two separate access layers — functional roles (what a job can do) and data access (which records they can see, usually territory- or org-based) — and explains why negative testing (logging in as two users from different territories and confirming each is blocked from the other's data) is the only real proof the access model works, not just a review of role assignments on paper.
Practice this lesson
Original educational case studies for SAP consultants, not official SAP certification exam questions. Verify product edition and implementation details against the current SAP documentation.
Quick check
0 of 4 questions attempted
Question 1 of 4
Which system should the CX test tenant integrate with?
Question 2 of 4
What usually connects CX authentication to the corporate identity provider?
Question 3 of 4
How do you ensure reps only see accounts in their region?
Question 4 of 4
Why automate user deprovisioning?
Practise this in an interview
Answer in your own words and get instant feedback, the way an interviewer would judge it.
1How do you design access for sales and service users in SAP Sales/Service Cloud?
2What could go wrong with tenant landscapes in CX projects and how do you prevent it?
Was this lesson helpful?
Keep exploring
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.