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

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

  • admin – Admin access on the given data source.

  • connect – Connect access on the given data source.

datasource_name (str) –

Name of the data source on which the permission will be granted. Must be an existing data source, or an empty string to grant permission on all data sources.

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.

datasource_name (str) –

Value of input parameter datasource_name.

info (dict of str to str) –

Additional information.