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

[DEPRECATED–please use GPUdb.grant_permission() instead] Grants a proc-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:

  • proc_admin – Admin access to the proc.

  • proc_execute – Execute access to the proc.

proc_name (str) –

Name of the proc to which the permission grants access. Must be an existing proc, or an empty string to grant access to all procs.

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.

proc_name (str) –

Value of input parameter proc_name.

info (dict of str to str) –

Additional information.