Databricks grant update calatog catlog_name --json @privileges.json not updating privileges

Prasad_Koneru
New Contributor III

Hi Team,

 

I am trying to update the catalog permission privileges using databricks cli command Grant by appending json file but which is not updating the prIviliges, please help on grant update command usage.

Command using :  databricks grants update catalog demo_cat --json @privileges.json 

which is listing old prIviliges only, not updating i have updated from ALL_PRIVILEGES to USE_CATALOG

privileges.json content:

{
"privilege_assignments": [
{
"principal":"mailid",
"privileges": [
"USE_CATALOG"
]
}
]
}