Items - List Item Access Details
返回用户列表(包括组和服务主体),并列出其工作区角色。
Note
此 API 是预览版的一部分,仅用于评估和开发目的。 它可能会根据反馈进行更改,不建议将其用于生产。
Permissions
调用方必须是 Fabric 管理员或使用服务主体进行身份验证。
所需的委派范围
Tenant.Read.All 或 Tenant.ReadWrite.All
Limitations
每小时最多 200 个请求。
Microsoft Entra 支持的标识
此 API 支持本节中列出的Microsoft 标识。
| Identity | Support |
|---|---|
| User | Yes |
| 服务主体和托管标识 | Yes |
Interface
GET https://api.fabric.microsoft.com/v1/admin/workspaces/{workspaceId}/items/{itemId}/users
GET https://api.fabric.microsoft.com/v1/admin/workspaces/{workspaceId}/items/{itemId}/users?type={type}
URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
item
|
path | True |
string (uuid) |
项 ID。 |
|
workspace
|
path | True |
string (uuid) |
工作区 ID。 |
|
type
|
query |
string |
项的类型。 查询以下类型时,此参数是必需的:
|
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| 200 OK |
作成功。 |
|
| Other Status Codes |
常见错误代码:
|
示例
| List of users for given item ID and type example |
| List of users for given item ID example |
List of users for given item ID and type example
示例请求
GET https://api.fabric.microsoft.com/v1/admin/workspaces/7f4496db-9929-47bd-89c0-d7eb2f517a98/items/f089354e-8366-4e18-aea3-4cb4a3a50b48/users?type=Report
示例响应
{
"accessDetails": [
{
"principal": {
"id": "f3052d1c-61a9-46fb-8df9-0d78916ae041",
"displayName": "Jacob Hancock",
"type": "User",
"userDetails": {
"userPrincipalName": "jacob@example.com"
}
},
"itemAccessDetails": {
"type": "Report",
"permissions": [
"Read",
"Reshare"
],
"additionalPermissions": [
"ReadAll"
]
}
}
]
}
List of users for given item ID example
示例请求
GET https://api.fabric.microsoft.com/v1/admin/workspaces/7f4496db-9929-47bd-89c0-d7eb2f517a98/items/f089354e-8366-4e18-aea3-4cb4a3a50b48/users
示例响应
{
"accessDetails": [
{
"principal": {
"id": "f3052d1c-61a9-46fb-8df9-0d78916ae041",
"displayName": "Jacob Hancock",
"type": "User",
"userDetails": {
"userPrincipalName": "jacob@example.com"
}
},
"itemAccessDetails": {
"type": "Notebook",
"permissions": [
"Read",
"Reshare"
],
"additionalPermissions": [
"ReadAll",
"viewOutput"
]
}
},
{
"principal": {
"id": "c7db8e03-c8cb-4d4c-9f64-1dcd327c9d3c",
"displayName": "Eric Solomon",
"type": "User",
"userDetails": {
"userPrincipalName": "eric@example.com"
}
},
"itemAccessDetails": {
"type": "Notebook",
"permissions": [
"Read",
"Reshare",
"Explore"
],
"additionalPermissions": [
"ReadAll"
]
}
},
{
"principal": {
"id": "f51b705f-a409-4d40-9197-c5d5f349e2f0",
"displayName": "TestSecurityGroup",
"type": "Group",
"groupDetails": {
"groupType": "SecurityGroup"
}
},
"itemAccessDetails": {
"type": "Notebook",
"permissions": [
"Read",
"Reshare"
],
"additionalPermissions": []
}
}
]
}
定义
| 名称 | 说明 |
|---|---|
|
Error |
与错误相关的资源详细信息对象。 |
|
Error |
错误响应。 |
|
Error |
错误响应详细信息。 |
|
Group |
组特定详细信息。 当主体类型 |
|
Group |
组的类型。 可能会随着时间的推移添加其他组类型。 |
|
Item |
项权限详细信息,例如 读取 和 重新共享。 |
|
Item |
项的用户访问详细信息。 |
|
Item |
有权访问给定实体的用户列表。 |
|
Item |
项权限。 可能会随着时间的推移添加其他项权限。 |
|
Item |
项的类型。 可能会随着时间的推移添加其他项类型。 |
| Principal |
表示标识或Microsoft Entra 组。 |
|
Principal |
主体的类型。 可能会随着时间的推移添加其他主体类型。 |
|
Service |
服务主体特定详细信息。 当主体类型 |
|
Service |
服务主体配置文件详细信息。 当主体类型 |
|
User |
用户主体特定详细信息。 当主体类型 |
ErrorRelatedResource
与错误相关的资源详细信息对象。
| 名称 | 类型 | 说明 |
|---|---|---|
| resourceId |
string |
错误中涉及的资源 ID。 |
| resourceType |
string |
错误中涉及的资源的类型。 |
ErrorResponse
错误响应。
| 名称 | 类型 | 说明 |
|---|---|---|
| errorCode |
string |
提供有关错误条件的信息的特定标识符,允许服务与其用户之间的标准化通信。 |
| message |
string |
错误的人工可读表示形式。 |
| moreDetails |
其他错误详细信息的列表。 |
|
| relatedResource |
与错误相关的资源详细信息。 |
|
| requestId |
string |
与错误关联的请求的 ID。 |
ErrorResponseDetails
错误响应详细信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| errorCode |
string |
提供有关错误条件的信息的特定标识符,允许服务与其用户之间的标准化通信。 |
| message |
string |
错误的人工可读表示形式。 |
| relatedResource |
与错误相关的资源详细信息。 |
GroupDetails
组特定详细信息。 当主体类型 Group时适用。
| 名称 | 类型 | 说明 |
|---|---|---|
| groupType |
组的类型。 可能会随着时间的推移添加其他组类型。 |
GroupType
组的类型。 可能会随着时间的推移添加其他组类型。
| 值 | 说明 |
|---|---|
| Unknown |
主体组类型未知。 |
| SecurityGroup |
主体是安全组。 |
| DistributionList |
主体是通讯组列表。 |
ItemAccessDetail
项权限详细信息,例如 读取 和 重新共享。
| 名称 | 类型 | 说明 |
|---|---|---|
| additionalPermissions |
string[] |
工作负荷权限,例如 readAll 和 viewOutput。 |
| permissions |
项权限,例如 读取 和 重新共享。 |
|
| type |
实体类型。 |
ItemAccessDetails
项的用户访问详细信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| itemAccessDetails |
用户的项目权限。 |
|
| principal |
有关有权访问实体的用户的信息。 |
ItemAccessDetailsResponse
有权访问给定实体的用户列表。
| 名称 | 类型 | 说明 |
|---|---|---|
| accessDetails |
有权访问实体的用户列表。 |
ItemPermissions
项权限。 可能会随着时间的推移添加其他项权限。
| 值 | 说明 |
|---|---|
| Read |
用户可以读取有关项的元数据。 |
| Write |
用户可以对项执行写入作。 |
| Reshare |
用户可以与其他用户共享项目。 |
| Explore |
用户可以在其他项上生成项。 |
| Execute |
用户可以执行和取消项作业。 |
ItemType
项的类型。 可能会随着时间的推移添加其他项类型。
| 值 | 说明 |
|---|---|
| Dashboard |
PowerBI 仪表板。 |
| Report |
PowerBI 报表。 |
| SemanticModel |
PowerBI 语义模型。 |
| PaginatedReport |
PowerBI 分页报表。 |
| Datamart |
PowerBI Datamart。 |
| Lakehouse |
湖屋 |
| Eventhouse |
事件屋。 |
| Environment |
环境。 |
| KQLDatabase |
KQL 数据库。 |
| KQLQueryset |
KQL 查询集。 |
| KQLDashboard |
KQL 仪表板。 |
| DataPipeline |
数据管道。 |
| Notebook |
笔记本。 |
| SparkJobDefinition |
spark 作业定义。 |
| MLExperiment |
机器学习试验。 |
| MLModel |
机器学习模型。 |
| Warehouse |
仓库。 |
| Eventstream |
事件流。 |
| SQLEndpoint |
SQL 终结点。 |
| MirroredWarehouse |
镜像仓库。 |
| MirroredDatabase |
镜像数据库。 |
| Reflex |
反射。 |
| GraphQLApi |
GraphQL 项的 API。 |
| MountedDataFactory |
MountedDataFactory。 |
| SQLDatabase |
SQLDatabase。 |
| CopyJob |
复制作业。 |
| VariableLibrary |
VariableLibrary。 |
| Dataflow |
数据流。 |
| ApacheAirflowJob |
ApacheAirflowJob。 |
| WarehouseSnapshot |
仓库快照。 |
| DigitalTwinBuilder |
DigitalTwinBuilder。 |
| DigitalTwinBuilderFlow |
数字孪生生成器流。 |
| MirroredAzureDatabricksCatalog |
镜像的 Azure databricks 目录。 |
| Map |
地图。 |
| AnomalyDetector |
异常检测器。 |
| UserDataFunction |
用户数据函数。 |
| GraphModel |
GraphModel。 |
| GraphQuerySet |
图形查询集。 |
| SnowflakeDatabase |
用于存储从 Snowflake 帐户创建的 Iceberg 表的 Snowflake 数据库。 |
| OperationsAgent |
OperationsAgent。 |
| CosmosDBDatabase |
Cosmos DB 数据库。 |
Principal
表示标识或Microsoft Entra 组。
| 名称 | 类型 | 说明 |
|---|---|---|
| displayName |
string |
主体的显示名称。 |
| groupDetails |
组特定详细信息。 当主体类型 |
|
| id |
string (uuid) |
主体的 ID。 |
| servicePrincipalDetails |
服务主体特定详细信息。 当主体类型 |
|
| servicePrincipalProfileDetails |
服务主体配置文件详细信息。 当主体类型 |
|
| type |
主体的类型。 可能会随着时间的推移添加其他主体类型。 |
|
| userDetails |
用户主体特定详细信息。 当主体类型 |
PrincipalType
主体的类型。 可能会随着时间的推移添加其他主体类型。
| 值 | 说明 |
|---|---|
| User |
主体是Microsoft Entra 用户主体。 |
| ServicePrincipal |
主体是Microsoft Entra 服务主体。 |
| Group |
主体是安全组。 |
| ServicePrincipalProfile |
主体是服务主体配置文件。 |
| EntireTenant |
主体表示所有租户用户。 |
ServicePrincipalDetails
服务主体特定详细信息。 当主体类型 ServicePrincipal时适用。
| 名称 | 类型 | 说明 |
|---|---|---|
| aadAppId |
string (uuid) |
服务主体的 Microsoft Entra AppId。 |
ServicePrincipalProfileDetails
服务主体配置文件详细信息。 当主体类型 ServicePrincipalProfile时适用。
| 名称 | 类型 | 说明 |
|---|---|---|
| parentPrincipal |
服务主体配置文件的父主体。 |
UserDetails
用户主体特定详细信息。 当主体类型 User时适用。
| 名称 | 类型 | 说明 |
|---|---|---|
| userPrincipalName |
string |
用户主体名称。 |