Skip to main content
  • [DEPRECATED—please use grant_permission instead] Grants a data source permission to a user or role.

    Parameters

    • name: string

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

    • permission: string

      Permission to grant to the user or role.

    • datasource_name: string

      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.

    • Optionaloptions: Record<string, string>

      Optional parameters.

    • Optionalcallback: GPUdbCallback

      Optional callback function

    Returns Promise<GrantPermissionDatasourceResponse>

    Promise<Types.GrantPermissionDatasourceResponse> - Promise resolving to the response