Forum Discussion

PANDAmonium's avatar
PANDAmonium
Resolver IV
4 years ago
Solved

REST API Permissions Error when Updating Dataflow

Hi All,
 
I'm getting this error when trying to update the dataflow name using the Power BI REST API: "You do not have permissions to manage this dataflow." I can't change the dataflow name in Power BI Service like a few others have mentioned over the past couple weeks so I'm trying it in the REST API. I added the service princpal as an admin; added Dataflow.ReadWrite.All API permissions in Azure;bverified the client id and secret; requested a new token; verified the group id and dataflow id; did a refresh on that dataflow via the REST API to futher verify the call, ids, and tokens were correct.
 
Any ideas on what I might be missing? And is updating the dataflow via the REST API working for you?
 
Thanks!
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi PANDAmonium 

     

    The product group fixed the 'Try it' button for the Power BI REST API, which makes debugging easier to get started, please try it.

    Best Regards,
    Gao

    Community Support Team

     

    If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

    How to get your questions answered quickly -- How to provide sample data

5 Replies

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi PANDAmonium 

       

      The product group fixed the 'Try it' button for the Power BI REST API, which makes debugging easier to get started, please try it.

      Best Regards,
      Gao

      Community Support Team

       

      If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

      How to get your questions answered quickly -- How to provide sample data

      • PANDAmonium's avatar
        PANDAmonium
        Resolver IV

        It's working now using the Try It feature in the Power BI Rest API docs and in Power BI Service. However when testing it in Postman, I'm still getting a "You do not have permissions to manage this dataflow" error. Tested updating the refresh schedule again which should require the same permissions and that works. 

         

        Either way, I'm able to do what I need to now at least which is changing the dataflow name, so thank you!

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi PANDAmonium ,

       

      Would you please share your steps, shell code and error messages? Please hide your private information such as {groupId} and {dataflowId}. thanks.

       

      Best Regards,
      Gao

      Community Support Team

       

      If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

      How to get your questions answered quickly -- How to provide sample data

  • Anonymous 

    I have the same problem, I try to modify the name of a dataflow
    The "Try it" on the Micorsoft dicumantation works and I can't do the same thing with a PowerShell script.

    Do you have a solution?