Share via

PowerBi Rest API Datasets - Update Parameters Using Service Principal

Anonymous
2024-08-23T04:52:26+00:00

The Power BI REST APIs Get Refresh and Get Parameters operations work fine using a Service Principal. However, I'm encountering issues when trying to update parameters using a Service Principal, despite having added the necessary permissions/scopes to the App Registration (Dataset.Read.All and Dataset.ReadWrite.All).

I need to update parameters using the Service Principal, but I'm getting 403 exception with the details below, and I'm unsure which permission I might be missing:

"Operation returned an invalid status code 'Forbidden'\n\n   at Microsoft.PowerBI.Api.DatasetsOperations.UpdateParametersInGroupWithHttpMessagesAsync(Guid groupId, String datasetId, UpdateMashupParametersRequest updateMashupParametersRequest, Dictionary`2 customHeaders, CancellationToken cancellationToken)\n   at Microsoft.PowerBI.Api.DatasetsOperationsExtensions.UpdateParametersAsync(IDatasetsOperations operations, Guid groupId, String datasetId, UpdateMashupParametersRequest updateMashupParametersRequest, CancellationToken cancellationToken)\n"

Does anyone know how I can resolve this?

Thanks.

Microsoft 365 and Office | Install, redeem, activate | For business | Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

4 answers

Sort by: Most helpful
  1. Anonymous
    2024-11-06T01:35:50+00:00

    Dear All,

    As it is a Power Bi issue, please post a new thread on the specific support channel Power BI forums - Microsoft Fabric Community for further help.

    Your understanding is greatly appreciated!

    Sincerely

    Cliff | Microsoft Community Moderator

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2024-11-05T14:47:16+00:00

    No Still Same Issue

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2024-11-05T14:02:17+00:00

    Hi Karthikraj,

    Did you get the solution for your error? Even I'm facing similar kind of problem when updating parameters. If your issue is resolved, it would be great if you share the solution!!

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2024-08-23T06:20:49+00:00

    Dear Karthikraj,

    Sorry for that our category may have limited resources on Power Bi related issues and questions. I kindly suggest you post a new thread on the specific support channel Power BI forums - Microsoft Fabric Community for further help.

    Your understanding is greatly appreciated!

    Sincerely

    Cliff | Microsoft Community Moderator

    Was this answer helpful?

    0 comments No comments