Forum Discussion

jovialttu19's avatar
jovialttu19
New Member
1 year ago
Solved

Using Fabric Restful API to Manage item permission

I am wandering is a way to use Fabrc Restful API to manage item permission such as add a user to have read permission to a Lakehouse or API for GraphQL?
  • nilendraFabric's avatar
    1 year ago

    Hello jovialttu19 

     

    Microsoft Fabric’s REST API currently has limited official support for managing granular item-level permissions like adding users to Lakehouses or GraphQL APIs.

     

    Try these endpoints, I haven't tried these personally and these are not documented 

     

     

    POST https://<region-redirect>.analysis.windows.net/metadata/access

     

    GET https://<region-redirect>.analysis.windows.net/m/access/artifacts/<item-id>

     

     

     

    The `POST /metadata/access` endpoint is used to grant permissions (e.g., ReadAll for Lakehouses).
    • The `GET /m/access/artifacts/{item-id}` endpoint retrieves existing permissions for an item

     

    To use these endpoints, your Entra ID app must have:
    • Delegated permissions: `Item.ReadWrite.All`
    • Workspace access: The service principal needs at least `Contributor` role in the target workspace

     

    Let me know if this works 

  • v-pnaroju-msft's avatar
    1 year ago

    Thankyou nilendraFabric for your response.

    Hi jovialttu19,

     

    Thank you for reaching out to the Microsoft Fabric Community Forum.

    Based on my research, the Microsoft Fabric REST API offers limited official support for managing granular item-level permissions. The available official endpoint, Resolve Item Permissions, allows retrieval of permissions for the authenticated principal but does not support assigning permissions.

    For permission management, it is advisable to use the Microsoft Fabric portal, which provides a user-friendly interface for assigning roles and permissions to users. You may refer to the following link for detailed guidance on the permission model and management:

    Permission model - Microsoft Fabric | Microsoft Learn

    We recommend staying updated on API developments by regularly checking the Microsoft Fabric REST API documentation for any official updates regarding permission management.

     

    Additionally, please refer to the following links for further information:

    Workload Control - Resolve Item Permissions - REST API (Workload Development) | Microsoft Learn
    Microsoft Fabric REST API references - Microsoft Fabric REST APIs | Microsoft Learn

     

    If you find our response helpful, kindly mark it as the accepted solution and provide kudos. This will assist other community members with similar queries.

     

    Thank you.