Forum Discussion
View all Pipelines
- Anonymous2 years ago
I finally got it to work. No the second link just gets the pipelines. I had pipelines that were actually assigned to no user. I suspect it was assigned to the manager before me and we she left the user went null. To update the user is the secret and I tried to use the link above, from LeeBenjamin: Deployment Pipeline - Update User As Admin
which used this API call. POST https://api.powerbi.com/v1.0/myorg/admin/pipelines/{pipelineId}/users
The documentation may be incorrect, as I could not get it to work until I changed the body key "accessRight" to "PipelineUserAccessRight". I only figured that out because I was clued by a previous error message. It was a lot of trial and error but problem finally solved!
In my case, I really needed to use "Admin" for "accessRight". If I use "PipelineUserAccessRight", I get an HTTP 400. The documentation mention "Admin" as the UI in the service.
Sounds like the team needs to create a User Interface that would avoid users interacting with api's to do something simple such as granting access to a Deployment Pipeline. The same feature exists for workspaces BTW.