

 Amazon Redshift 將不再支援從修補程式 198 開始建立新的 Python UDFs。現有 Python UDF 將繼續正常運作至 2026 年 6 月 30 日。如需詳細資訊，請參閱[部落格文章](https://aws.amazon.com/blogs/big-data/amazon-redshift-python-user-defined-functions-will-reach-end-of-support-after-june-30-2026/)。

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# SVV\$1USER\$1GRANTS
<a name="r_SVV_USER_GRANTS"></a>

使用 SVV\$1USER\$1GRANTS 來檢視叢集中明確授予角色的使用者清單。

下列使用者可以看見 SVV\$1USER\$1GRANTS：
+ 超級使用者
+ 具有 ACCESS SYSTEM TABLE 許可的使用者

其他使用者只能看到明確授予他們的角色。

## 資料表欄
<a name="sub-r_SVV_USER_GRANTS-table-columns"></a>

[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/redshift/latest/dg/r_SVV_USER_GRANTS.html)

## 範例查詢
<a name="r_SVV_USER_GRANTS-sample-queries"></a>

下列查詢會將角色授予使用者，並顯示明確授予角色的使用者清單。

```
GRANT ROLE role1 TO reguser;
GRANT ROLE role2 TO reguser;
GRANT ROLE role1 TO superuser;
GRANT ROLE role2 TO superuser;

SELECT user_name,role_name,admin_option FROM svv_user_grants;

 user_name | role_name | admin_option
-----------+-----------+--------------
 superuser |  role1    | False
 reguser   |  role1    | False
 superuser |  role2    | False
  reguser  |  role2    | False
```