Method: properties.userLinks.create

在帳戶或資源中建立使用者連結。

如果擁有指定電子郵件的使用者已經擁有帳戶或資源的權限,則使用者現有的權限會與新 UserLink 中指定的權限結合。

HTTP 要求

POST https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*}/userLinks

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

路徑參數

參數
parent

string

必要欄位。格式範例:accounts/1234

查詢參數

參數
notifyNewUser

boolean

選用設定。設定完成後,系統會發送電子郵件通知新使用者,說明他們已獲得資源權限。

要求主體

要求主體包含 UserLink 的例項。

回應主體

如果成功,回應主體會包含新建立的 UserLink 例項。

授權範圍

需要下列 OAuth 範圍:

  • https://www.googleapis.com/auth/analytics.manage.users