Failed to grant permission in DolphinDB

24 views Asked by At

I create a user and grant him read permission for all databases and tables. However, when I log in as this user, related permission is not granted as expected. The following is my script:

grant('superUsers', DB_READ, '*')
1

There are 1 answers

0
zhihengqu On BEST ANSWER

In DolphinDB, a single character wrapped with single quotes is recognized as a CHAR, instead of a STRING. You should use double quotes for the third parameter “*”, as shown in the following script:

grant('superUsers', DB_READ, "*")