cancel
Showing results for 
Search instead for 
Did you mean: 

Deactivate SYSTEM User with minimum privileges

reinhard-sanz
Explorer
0 Kudos

Hey quick question,

as it is recommended to deactivate the system user by default and only reactivate it when needed, i want to create another user that can do exactly that.

I already know this can be achieved by granting the system privilege "USER ADMIN" to the new user, but this seems to be too broad in my opinion. This does also allow creating and dropping all other users.

Is there a way to grant privileges to a user so that it can realy only activate and deactivate the system user (and only the system user) and nothing more?

Accepted Solutions (1)

Accepted Solutions (1)

Cocquerel
Active Contributor
0 Kudos

I think you could create a user group and assign SYSTEM user to it. Then, users having USERGROUP OPERATOR privilege on this user group will be able to activate/desactivate SYSTEM user without USER ADMIN privilege. You could even set the DISABLE USER ADMIN option for this group. This will prevent people having USER ADMIN privilege to be able to activate SYSTEM user.

CREATE USERGROUP HIGHPRIVILEGESUSERS DISABLE USER ADMIN;

ALTER USER SYSTEM SET USERGROUP HIGHPRIVILEGESUSERS;

GRANT OPERATOR ON USERGROUP HIGHPRIVILEGESUSERS TO <authorized_user>;

See https://help.sap.com/docs/SAP_HANA_PLATFORM/4fe29514fd584807ac9f2a04f6754767/9869125ea93548009820702...

reinhard-sanz
Explorer
0 Kudos

Thank you for the Answer. Will try that!

Answers (1)

Answers (1)

mamartins
Active Contributor
0 Kudos

A "PRIVILEGE" is the smallest security atribute configured on SAP HANA. A "ROLE" is a collection of one or more PRIVILEGES.

USER_ADMIN is a PRIVILEGE, so I think that you are asking is not possible.