client.databases.get_schema_privileges

A method of the Databases endpoint.

get_schema_privileges(id: int, schema_name: str, *, credential_id: int = None) Response

Show schema privileges

API URL: GET /databases/{id}/schema_privileges/{schema_name}

import civis
client = civis.APIClient()
response = client.databases.get_schema_privileges(...)
Parameters:
idint

The ID of the database

schema_namestr

The name of the schema

credential_idint, optional

If provided, schemas will be filtered based on the given credential.

Returns:
civis.Response
  • granteestr

    Name of the granted user or group

  • grantee_typestr

    User or group

  • privilegesList[str]

    Privileges that the grantee has on this resource

  • grantable_privilegesList[str]

    Privileges that the grantee can grant to others for this resource