Revoke Privilege

delete_grant = hc.delete_user_permission("test_user", ["all"], "my_test_rename", "my_database")

Result:

This method returns a Boolean value to represent whether this operation is successful. If the error pops up when revoking privilege, “ValueError” exception will be raised.

Parameter description:

ParametersDescriptionRequired
user_name (str)User to whom will be revoked privilegesYes
privileges (list[str])Privilege list, including “create”, “access”, “all”Yes
table_name (str)Table nameNo, revokes privileges on "default" database if not specified. If user does not have privilege on "default" database, “ValueError” exception will be raised
database_name (str)Database where the table is createdNo, defaults to "default" database
Table 91 Revoke Privilege (Python API)