Assigning roles to users
Roles created can be assigned to users, thus providing authorization to users for objects/data. In this recipe, we will see how to assign roles to users.
Getting ready
In order to assign roles to users, we should have roles and users created readily.
How to do it…
We will be assigning roles to users as follows:
Open the user from the
Security
folder.From the Granted Roles tab, add a role by searching for the created role. In our example, the role is COOKBOOK_ROLE, as shown in the following screenshot.
Then activate the user by clicking on Deploy.
How it works…
When a role is assigned to a user, the privileges and other roles that the newly created role holds are inherited by the user that we assign the role to. Thus, when we use that user ID and start modeling in SAP HANA Studio, all the privileges come to action and thereby the user gets all the assigned authorizations that are inherited as a part of the assigned role.
There's more…
The same set of actions as assigning roles...