HANA Security Fundamentals: Users, Roles and Privileges
Free sample lesson · open to everyone
Understand the HANA security model by separating identity, roles and the privileges that permit platform administration, object access and analytical data access.
In this lessonShow sectionsHide sections
The situation: a real project scenario
Create a reporting role with read access only to approved calculation views, then compare it with an administrator role to see why system privileges should not be used for application access.
Explanation
In HANA security, users and technical identities are granted access through roles rather than through direct privilege grants — roles group privileges together, and direct grants to individual users are the exception rather than the normal pattern.
There are three types of privileges that make up these roles: system privileges, which cover administrative platform capabilities; object privileges, which control operations like SELECT or EXECUTE on specific database objects; and analytical privileges, which go a step further by restricting which data values a user can see within analytical scenarios, not just which objects they can access.
The first principle guiding how these privileges are assigned is least privilege, and it applies most strictly to technical users. A reporting application that only needs to query five views should never be granted broad schema access or administrative rights just because that is more convenient to set up.
This distinction between login and data access also matters directly for troubleshooting: a user's login can succeed while a specific SELECT statement still fails, because authentication and authorization are separate checks. When troubleshooting an access problem, the right approach is to start from the failed operation and the specific object involved, not from the login itself.
Begin by checking the object privilege on that object, and if a SELECT still fails despite what looks like adequate access, look deeper into underlying dependencies and any analytical-privilege logic that might be filtering the data. A successful login never guarantees a successful SELECT, and keeping that distinction in mind is what makes privilege troubleshooting efficient rather than guesswork.
How the SAP process fits together
SAP PROCESS EXPLORER · Security: identity to compliant access
ERPClimb.comHANA Security — process breakdown
Topic-specific conceptual flow: how key objects and decisions fit together. SAP configurations and exceptional cases can follow different paths.
Selected process stage
Identity
Provision technical/user database principals
Representative SAP learning flow, not a guarantee of system runtime sequence in every scenario.
Watch out
Common mistakes
- Granting powerful system privileges to fix a read problem — a failed SELECT is almost always an object-privilege or analytical-privilege gap, not a reason to hand out admin-level system privileges as a shortcut.
- Making many direct object grants to individual users instead of roles — this scatters access across hundreds of grants with no single place to review or revoke it, and makes audits painful.
- Reusing one technical super-user across multiple applications — if that account is compromised or misused, every application sharing it is exposed, and activity can't be traced back to a specific app or purpose.
- Confusing authentication with authorization — a user can log in successfully (authentication) and still fail every query (authorization); troubleshooting the wrong layer wastes time and can lead to over-provisioning just to make an error go away.
- Ignoring analytical privileges when granting object access — a user can have SELECT on a calculation view but analytical privileges can still filter out rows, so access looks broken even though the object grant is correct.
Do this
Best practices
- Grant access through roles, not direct object grants, so a single role change updates everyone who holds it and audits can see entitlements in one place.
- Scope technical/service users narrowly to only the objects and operations their specific integration needs — a reporting connector should never hold schema-wide or admin privileges.
- Review powerful system privileges on a recurring schedule, since admin-level access tends to accumulate through one-off troubleshooting grants that are never removed.
- Keep administrator roles and application/technical-user roles separate, so a compromised application account can't be used to administer the platform.
- When access fails, troubleshoot from the specific failed object and operation first (object/analytical privilege), rather than reaching for broader system privileges as a fix.
In the interview
Interview angle
Typical question: "A user can log in to HANA but a SELECT against a calculation view fails — where do you look?" A strong answer separates the three privilege types (system, object, analytical), explains that a successful login only proves authentication, and walks through checking object privileges on the specific view and then analytical-privilege row/value restrictions before considering anything broader. A weak answer jumps straight to granting a system privilege or a wider role to make the error disappear, without diagnosing which layer actually failed.
Practice this lesson
Quick check
0 of 3 questions attempted
Question 1 of 3
Create a reporting role with read access only to approved calculation views, then compare it with an administrator role to see why system privileges should not be used for application access. What is the right approach?
Question 2 of 3
What is the purpose of the technical user _SYS_REPO in an SAP HANA system?
Question 3 of 3
What is the primary purpose of analytic privileges in SAP HANA?
Practise this in an interview
Answer in your own words and get instant feedback, the way an interviewer would judge it.
1Using this SAP project situation — Create a reporting role with read access only to approved calculation views, then compare it with an administrator role to see why system privileges should not be used for application access — explain HANA Security Fundamentals: Users, Roles and Privileges. What should happen, which concepts or process steps matter, and what common mistake would you avoid?
2You are the senior consultant/architect responsible for HANA Security: Users, Roles, System, Object and Analytic Privileges. The project situation is: A reporting technical user was granted broad catalog access to solve one missing view permission. How would you assess the design, identify the highest-risk failure modes, and define the evidence required before approving it for production?
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.