Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered
When running a Notebook in the security context of a Service Principal, unfortunately notebookutils.credentials.getToken('pbi') and notebookutils.credentials.getToken('https://api.fabric.microsoft.com') only return a few scopes:
* Dataset.ReadWrite.All
* Lakehouse.ReadWrite.All
* MLExperiment.ReadWrite.All
* MLModel.ReadWrite.All
* Notebook.ReadWrite.All
* SparkJobDefinition.ReadWrite.All
* Workspace.ReadWrite.All
This severely limits the usability of the token when working in Fabric for other item types and Fabric REST APIs. Please make it so that the token can access all item types and all Fabric REST APIs.
The Service Principal has Contributor access to the workspaces and the Notebook is executed in the security context of the Service Principal.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.