Skip to main content
grant_permission_system(name=None, permission=None, options=)[source]

[DEPRECATED–please use GPUdb.grant_permission() instead] Grants a system-level permission to a user or role.

Parameters

name (str) –

Name of the user or role to which the permission will be granted. Must be an existing user or role.

permission (str) –

Permission to grant to the user or role. Allowed values are:

  • system_admin – Full access to all data and system functions.

  • system_user_admin – Access to administer users and roles that do not have system_admin permission.

  • system_write – Read and write access to all tables.

  • system_read – Read-only access to all tables.

  • system_send_alert – Send system alerts.

options (dict of str to str) –

Optional parameters. The default value is an empty dict ( ).

Returns

A dict with the following entries–

name (str) –

Value of input parameter name.

permission (str) –

Value of input parameter permission.

info (dict of str to str) –

Additional information.