在帳戶或資源上建立使用者連結。
如果指定電子郵件的使用者已經擁有帳戶或資源的權限,則使用者的現有權限會與新的 UserLink 內指定的權限建立關聯。
HTTP 要求
POST https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*}/userLinks
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 | |
---|---|
parent |
必要欄位。格式範例:accounts/1234 |
查詢參數
參數 | |
---|---|
notifyNewUser |
選用設定。設定後,請傳送電子郵件給新使用者,通知他們已獲得資源的權限。 |
要求主體
要求主體包含 UserLink
的例項。
回應主體
如果成功,回應主體會包含新建立的 UserLink
例項。
授權範圍
需要下列 OAuth 範圍:
https://www.googleapis.com/auth/analytics.manage.users