Method: projects.locations.userStores.batchUpdateUserLicenses

更新使用者授權。這個方法用於批次指派/取消指派授權給使用者。

HTTP 要求

POST https://discoveryengine.googleapis.com/v1/{parent=projects/*/locations/*/userStores/*}:batchUpdateUserLicenses

這個網址使用 gRPC 轉碼語法。

路徑參數

參數
parent

string

這是必要旗標,父項 [UserStore][] 資源名稱,格式為 projects/{project}/locations/{location}/userStores/{userStoreId}

要求主體

要求主體包含下列結構的資料:

JSON 表示法
{
  "deleteUnassignedUserLicenses": boolean,

  // Union field source can be only one of the following:
  "inlineSource": {
    object (InlineSource)
  }
  // End of list of possible types for union field source.
}
欄位
deleteUnassignedUserLicenses

boolean

(選用步驟) 如果設為 true,使用者授權移除相關聯的授權設定時,系統會刪除使用者授權。根據預設,這項值為 false,使用者授權會更新為未指派狀態。

聯集欄位 source。這是必要旗標,輸入內容的來源。source 只能是下列其中一項:
inlineSource

object (InlineSource)

文件嵌入內容的輸入內容內嵌來源。

回應主體

如果成功,回應主體會包含 Operation 的執行個體。

授權範圍

需要下列其中一種 OAuth 範圍:

  • https://www.googleapis.com/auth/cloud-platform
  • https://www.googleapis.com/auth/discoveryengine.readwrite

詳情請參閱Authentication Overview

IAM 權限

需要 parent 資源的下列 IAM 權限:

  • discoveryengine.userStores.batchUpdateUserLicenses

詳情請參閱 IAM 說明文件

InlineSource

userStores.batchUpdateUserLicenses 方法的輸入設定內嵌來源。

JSON 表示法
{
  "userLicenses": [
    {
      object (UserLicense)
    }
  ],
  "updateMask": string
}
欄位
userLicenses[]

object (UserLicense)

這是必要旗標,要更新的使用者授權清單。每個使用者授權都必須有有效的 UserLicense.user_principal

updateMask

string (FieldMask format)

(選用步驟) 要更新的欄位清單。

這是以半形逗號分隔的完整欄位名稱清單。範例:"user.displayName,photo"