Method: labels.permissions.list
HTTP 要求
GET https://drivelabels.googleapis.com/v2/{parent=labels/*}/permissions
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 |
parent |
string
必要欄位。列出標籤權限的父項標籤資源名稱。格式:label/{label}
|
查詢參數
參數 |
useAdminAccess |
boolean
如要使用使用者的管理員憑證,請設為 true 。伺服器會先驗證使用者是否是該標籤的管理員,再授予存取權。
|
pageSize |
integer
每頁傳回的權限數量上限。預設值為「50」。上限:200 個。
|
pageToken |
string
要傳回的網頁權杖。
|
授權範圍
需要下列其中一種 OAuth 範圍:
https://www.googleapis.com/auth/drive.labels
https://www.googleapis.com/auth/drive.labels.readonly
https://www.googleapis.com/auth/drive.admin.labels
https://www.googleapis.com/auth/drive.admin.labels.readonly
詳情請參閱授權指南。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-09-04 (世界標準時間)。
[null,null,["上次更新時間:2024-09-04 (世界標準時間)。"],[[["This document details how to list a Label's permissions using the Drive Labels API's `ListLabelPermissions` method."],["The method uses an HTTP GET request with required path and optional query parameters."],["The request body should be empty, and a successful response will contain a `ListLabelPermissionsResponse` object."],["Proper authorization with specific OAuth scopes like `https://www.googleapis.com/auth/drive.labels` is required to access this functionality."]]],["This outlines how to list a Label's permissions using an HTTP GET request to `https://drivelabels.googleapis.com/v2/{parent=labels/*}/permissions`. The `parent` path parameter is mandatory, defining the Label's resource name. Optional query parameters include `useAdminAccess`, `pageSize` (default 50, max 200), and `pageToken` for pagination. The request body must be empty. A successful response provides a `ListLabelPermissionsResponse`. Authorization requires specific OAuth scopes related to Drive labels.\n"]]