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

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

  • credential_admin – Full read/write and administrative access on the credential.

  • credential_read – Ability to read and use the credential.

credential_name (str) –

Name of the credential on which the permission will be granted. Must be an existing credential, or an empty string to grant access on all credentials.

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.

credential_name (str) –

Value of input parameter credential_name.

info (dict of str to str) –

Additional information.