Documentation
Toggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

SHOW SUNDECK GRANTS

Lists all Sundeck access control privileges that have been explicitly granted to user.

See also:
GRANT SUNDECK ROLE, REVOKE SUNDECK ROLE

Syntax

SHOW SUNDECK GRANTS;

Example:

kai#COMPUTE_WH@(no database).(no schema)>show sundeck grants;
+--------------------------------------+-------+------------+--------------+------------+
| CREATED_ON                           | ROLE  | GRANTED_TO | GRANTEE_NAME | GRANTED_BY |
|--------------------------------------+-------+------------+--------------+------------|
| 2023-11-14 20:29:09.117026 +0000 UTC | ADMIN | USER       | KAI        | ADMIN      |
| 2023-11-14 20:29:39.871583 +0000 UTC | ADMIN | USER       | TEST         | ADMIN      |
+--------------------------------------+-------+------------+--------------+------------+
2 Row(s) produced. 

kai#COMPUTE_WH@(no database).(no schema)>revoke sundeck role admin from user test;  
+---------+                                                                     
| status  |
|---------|
| SUCCESS |
+---------+
1 Row(s) produced. 

kai#COMPUTE_WH@(no database).(no schema)>show sundeck grants;
+--------------------------------------+-------+------------+--------------+------------+
| CREATED_ON                           | ROLE  | GRANTED_TO | GRANTEE_NAME | GRANTED_BY |
|--------------------------------------+-------+------------+--------------+------------|
| 2023-11-14 20:29:09.117026 +0000 UTC | ADMIN | USER       | KAI        | ADMIN      |
+--------------------------------------+-------+------------+--------------+------------+
1 Row(s) produced.