1

I have many databases created. I want to assign to userGroup1 the READ privilege to 4 tables out of the total of 6 tables in the database db1. How can I use grant to specify the usergroup and tables?

Polly
  • 603
  • 3
  • 13

1 Answers1

0

You can refer to the official docs: https://www.dolphindb.com/help/FunctionsandCommands/CommandsReferences/g/grant.html on function grant. Sample code for your reference:

grant(`group1, TABLE_READ, "dfs://db1/table1")
grant(`group1, TABLE_READ, "dfs://db1/table2")
grant(`group1, TABLE_READ, "dfs://db1/table3")
grant(`group1, TABLE_READ, "dfs://db1/table4")
Polly
  • 603
  • 3
  • 13