[ https://issues.apache.org/jira/browse/IOTDB-3149?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jialin Qiao reassigned IOTDB-3149: ---------------------------------- Assignee: 任宇华 (was: Jialin Qiao) > There is a difference between adding ** path and without a path to list user > privileges > ---------------------------------------------------------------------------------------- > > Key: IOTDB-3149 > URL: https://issues.apache.org/jira/browse/IOTDB-3149 > Project: Apache IoTDB > Issue Type: Bug > Components: Core/Server > Affects Versions: master branch > Reporter: xiaozhihong > Assignee: 任宇华 > Priority: Minor > Attachments: image-2022-05-11-10-36-43-442.png > > > List the privileges that a user has: After executing without the path > (root.*{*}) and with the path (root.{*}*), there are differences in the > privileges displayed by the user. > The following SQL shows: > LIST USER PRIVILEGES user01: Shows all the privileges of the current user. > LIST PRIVILEGES USER user01 on root.**: Generally speaking, all paths are > wildcarded **, but only the privileges of a certain path are currently > displayed. > {code:java} > IoTDB> LIST USER PRIVILEGES user01; > +----+-------------------------------------+ > |role| privilege| > +----+-------------------------------------+ > | | root : SET_STORAGE_GROUP| > | | root.ln : CREATE_TIMESERIES| > | |root.** : SET_STORAGE_GROUP LIST_USER| > | | root.ln.** : CREATE_TIMESERIES| > +----+-------------------------------------+ > Total line number = 4 > It costs 0.003s > IoTDB> LIST PRIVILEGES USER user01 on root.**; > +----+-------------------------------------+ > |role| privilege| > +----+-------------------------------------+ > | |root.** : SET_STORAGE_GROUP LIST_USER| > +----+-------------------------------------+ > Total line number = 1 > It costs 0.003s > {code} > !image-2022-05-11-10-36-43-442.png! -- This message was sent by Atlassian Jira (v8.20.10#820010)