共用方式為


Groups - Update Group User

將指定的用戶權力更新至指定的工作區。

權限

此 API 呼叫可由服務主體配置檔呼叫。 如需詳細資訊,請參閱:Power BI Embedded中的服務主體配置檔。

必要範圍

Workspace.ReadWrite.All

局限性

  • 工作區的用戶許可權需要時間來更新,而且在使用 API 呼叫時可能無法立即使用。 若要重新整理用戶權力,請使用 重新整理用戶權力 API 呼叫。

PUT https://api.powerbi.com/v1.0/myorg/groups/{groupId}/users

URI 參數

名稱 位於 必要 類型 Description
groupId
path True

string (uuid)

工作區標識碼

要求本文

名稱 必要 類型 Description
groupUserAccessRight True

GroupUserAccessRight

使用者在工作區上擁有的存取權限(權限等級)

identifier True

string

主體的標識碼

principalType True

PrincipalType

主體類型

displayName

string

主體的顯示名稱

emailAddress

string

使用者的電子郵件地址

graphId

string

Microsoft Graph 中主體的標識碼。 僅適用於系統管理員 API。

profile

ServicePrincipalProfile

Power BI 服務主體配置檔。 僅與 Power BI Embedded 多租使用者解決方案相關。

userType

string

使用者的類型。

回應

名稱 類型 Description
200 OK

還行

範例

Assign administrator user access rights to a service principal example
Example

Assign administrator user access rights to a service principal example

範例要求

PUT https://api.powerbi.com/v1.0/myorg/groups/f089354e-8366-4e18-aea3-4cb4a3a50b48/users
{
  "identifier": "1f69e798-5852-4fdd-ab01-33bb14b6e934",
  "groupUserAccessRight": "Admin",
  "principalType": "App"
}

範例回覆

Example

範例要求

PUT https://api.powerbi.com/v1.0/myorg/groups/f089354e-8366-4e18-aea3-4cb4a3a50b48/users
{
  "emailAddress": "john@contoso.com",
  "groupUserAccessRight": "Admin"
}

範例回覆

定義

名稱 Description
GroupUser

可存取工作區的Power BI 使用者

GroupUserAccessRight

使用者在工作區上擁有的存取權限(權限等級)

PrincipalType

主體類型

ServicePrincipalProfile

Power BI 服務主體配置檔。 僅與 Power BI Embedded 多租使用者解決方案相關。

GroupUser

可存取工作區的Power BI 使用者

名稱 類型 Description
displayName

string

主體的顯示名稱

emailAddress

string

使用者的電子郵件地址

graphId

string

Microsoft Graph 中主體的標識碼。 僅適用於系統管理員 API。

groupUserAccessRight

GroupUserAccessRight

使用者在工作區上擁有的存取權限(權限等級)

identifier

string

主體的標識碼

principalType

PrincipalType

主體類型

profile

ServicePrincipalProfile

Power BI 服務主體配置檔。 僅與 Power BI Embedded 多租使用者解決方案相關。

userType

string

使用者的類型。

GroupUserAccessRight

使用者在工作區上擁有的存取權限(權限等級)

Description
None

沒有工作區內容的存取權

Member

讀取、重新共用和探索工作區內容的訪問許可權

Admin

工作區內容的系統管理員許可權

Contributor

讀取和探索工作區內容的存取權

Viewer

工作區內容的唯讀存取權

PrincipalType

主體類型

Description
None

沒有主體類型。 用於整個組織層級存取。

User

用戶主體類型

Group

群組主體類型

App

服務主體類型

ServicePrincipalProfile

Power BI 服務主體配置檔。 僅與 Power BI Embedded 多租使用者解決方案相關。

名稱 類型 Description
displayName

string

服務主體配置檔名稱

id

string (uuid)

服務主體配置檔識別碼