Skip to content

Commit

Permalink
add DESCRIBE USER (#952)
Browse files Browse the repository at this point in the history
  • Loading branch information
cooper-lzy committed Dec 1, 2021
1 parent 799acaa commit f483a4e
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions docs-2.0/7.data-security/1.authentication/2.management-user.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,28 @@ Users with the **GOD** role or the **ADMIN** role can run `REVOKE ROLE` to revok
nebula> REVOKE ROLE USER ON basketballplayer FROM user1;
```

## DESCRIBE USER

Users can run `DESCRIBE USER` to list the roles for a specified user.

* Syntax

```ngql
DESCRIBE USER <user_name>;
DESC USER <user_name>;
```

* Example

```ngql
nebula> DESCRIBE USER user1;
+---------+--------------------+
| role | space |
+---------+--------------------+
| "ADMIN" | "basketballplayer" |
+---------+--------------------+
```

## SHOW ROLES

Users can run `SHOW ROLES` to list the roles in a graph space.
Expand Down

0 comments on commit f483a4e

Please sign in to comment.