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!
even with the second link?
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!
- samsonfrb1 year agoAdvocate I
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.
function Grant-PipelineAccess {param ([string]$accessToken,[string]$pipelineGuid,[string]$groupId)$body = @{identifier = $groupIdaccessRight = "Admin"principalType = "Group"} | ConvertTo-Json$headers = @{"Authorization" = "Bearer $accessToken""Content-Type" = "application/json"}Invoke-RestMethod -Uri "https://api.powerbi.com/v1.0/myorg/admin/pipelines/$pipelineGuid/users" -Method Post -Body $body -Headers $headers}Frederick- fvalencia1 year agoFrequent Visitor
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.