SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
โคข Open full site

Create Users and Manage Roles and Privileges

Learn how to create users and assign roles and privileges using SQL or SAP HANA Cloud Central.

Overview

🎓 beginner 5 min. SAP HANA CloudBeginnerSAP HANA CloudSAP HANA Database

You will learn

  • โœ”The basics about the role-based security model in SAP HANA Cloud, SAP HANA database
  • โœ”How to create users using SQL or the User Management app
  • โœ”How to assign roles and privileges using SQL statements or in SAP HANA Cloud Central
Dan van Leeuwen D Dan van Leeuwen August 11, 2026
Created by August 3, 2021
Contributors

Prerequisites

Prerequisites

Steps

Intro

Alex Banner
Alex Banner

Reminder: This tutorial is part of a mission, in which you will help Alex, the CEO of Best Run Travel, to answer a concrete business question with SAP HANA Cloud, SAP HANA database.

Alex needs to know the top 5 partners of their agency and wants to find out the days with maximum booking of each partner.


Step 1 Understand roles and privileges
โ€”

SAP HANA Cloud, SAP HANA database defines user permissions and privileges using a role-based security model.

Roles and privileges can be granted to users or revoked from users. A role is a set of privileges that can, as a group, be assigned to a user. Then, as the role’s privileges change, the user’s privileges change accordingly. Roles can be broken down as follows:

  • User-Defined Roles are a custom collection, often created to group privileges and tasks
  • System Roles are built-in and automatically created with a new database

A privilege provides the ability to perform an operation on the system. A permission, on the other hand, is that ability in the given environment. A user may not have permission to perform a task if they have the privilege, but not on the currently acted on object. Privileges are broken down as follows:

  • System privileges give you the right to perform the action
  • Object-level privileges restrict your right to perform the action to the specified objects, on which the privilege is granted.

When a new object is created, the owner can be defined, otherwise, the creator becomes the owner. This gives privileges to modify the structure of the table and grant other privileges to other database users.

Ownership of a table is not sufficient to load the table with data. The user must also have INSERT permission on the table.

Step 2 Create users and roles and manage privileges
+
Step 3 Knowledge Check
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 3
1. Understand roles and privileges 2. Create users and roles and manage privileges 3. Knowledge Check

Learn more →