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.