API Permissions and Token Scope for Running Notebook Using Azure Service Principal

Padmanabhan M 80 Reputation points
2025-12-03T08:00:19.0333333+00:00

I am trying to run a Microsoft Fabric notebook using an API and I am using a service principal for authentication. The service principal has been created successfully, but I am not sure about:

  1. Which API permissions need to be added to the service principal.
  2. What scope I should use when requesting an access token to authenticate the API call.
Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} votes

Answer accepted by question author
  1. Rukmini 8,600 Reputation points Microsoft External Staff Moderator
    2025-12-03T19:55:31.85+00:00

    Hello Padmanabhan M,

    To access Microsoft Fabric Rest API using Azure Service principal, you need to create an application and grant below API permission:

    User's image

    In PowerBI Admin Portal, you need to enable the below options:

    User's image

    And add the Service principal as Admin or Contributor to the workspace:

    User's image

    Generate access token:

    User's image

    Now use the below URL to run the notebook:

    Refer: Job Scheduler - Run On Demand Item Job - REST API (Core) | Microsoft Learn

    POST https://api.fabric.microsoft.com/v1/workspaces/WorkspaceID/items/ItemID/jobs/Jobtype/instances

    User's image


    If the resolution was helpful, kindly take a moment to accept the answer and upvote it 👍 it as a token of appreciation.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.