Admin - Groups GetGroupUsersAsAdmin

返回有权访问指定工作区的用户的列表。

Permissions

  • 用户必须是 Fabric 管理员或使用服务主体进行身份验证。
  • 支持委派的权限。

在服务特权身份验证下运行时,应用 不得 在 Azure 门户中为 Power BI 设置任何管理员许可许可。

所需范围

Tenant.Read.All 或 Tenant.ReadWrite.All

仅在通过标准委派管理员访问令牌进行身份验证时相关。 使用服务主体进行身份验证时不得存在。

局限性

每小时最多 200 个请求。

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

URI 参数

名称 必需 类型 说明
groupId
path True

string (uuid)

工作区 ID

响应

名称 类型 说明
200 OK

GroupUsers

好的

示例

Example

示例请求

GET https://api.powerbi.com/v1.0/myorg/admin/groups/f089354e-8366-4e18-aea3-4cb4a3a50b48/users

示例响应

{
  "value": [
    {
      "displayName": "John Nick",
      "emailAddress": "john@contoso.com",
      "groupUserAccessRight": "Admin",
      "identifier": "john@contoso.com",
      "graphId": "3fadb6e4-130c-4a8f-aeac-416e38b66756",
      "principalType": "User"
    },
    {
      "displayName": "Adam Wood",
      "emailAddress": "Adam@contoso.com",
      "groupUserAccessRight": "Member",
      "identifier": "Adam@contoso.com",
      "graphId": "785e192c-0f1f-41ca-ae7a-a85da28e565a",
      "principalType": "User"
    },
    {
      "displayName": "ContosoTestApp",
      "groupUserAccessRight": "Admin",
      "identifier": "3d9b93c6-7b6d-4801-a491-1738910904fd",
      "graphId": "3d9b93c6-7b6d-4801-a491-1738910904fd",
      "principalType": "App"
    }
  ]
}

定义

名称 说明
GroupUser

有权访问工作区的 Power BI 用户

GroupUserAccessRight

用户对工作区拥有的访问权限(权限级别)

GroupUsers

有权访问工作区的 Power BI 用户列表的 OData 响应包装器

PrincipalType

主体类型

ServicePrincipalProfile

Power BI 服务主体配置文件。 仅适用于 Power BI Embedded 多租户解决方案

GroupUser

有权访问工作区的 Power BI 用户

名称 类型 说明
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

用户对工作区拥有的访问权限(权限级别)

说明
None

无法访问工作区内容

Member

读取、重新共享和浏览 (ReadReshareExplore) 对工作区内容的访问权限

Admin

工作区内容的管理员权限

Contributor

读取和浏览对工作区内容的访问

Viewer

对工作区内容的只读(读取)访问权限

GroupUsers

有权访问工作区的 Power BI 用户列表的 OData 响应包装器

名称 类型 说明
@odata.context

string

value

GroupUser[]

有权访问工作区的用户列表

PrincipalType

主体类型

说明
None

无主体类型。 用于整个组织级别的访问。

User

用户主体类型

Group

组主体类型

App

服务主体类型

ServicePrincipalProfile

Power BI 服务主体配置文件。 仅适用于 Power BI Embedded 多租户解决方案

名称 类型 说明
displayName

string

服务主体配置文件名称

id

string (uuid)

服务主体配置文件 ID