Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
wanwar
Frequent Visitor

Change Deployment Pipeline Owner

We have a deployment pipeline that was created/owned by an employee who is no longer with the co. I am using below API to change the owner :

https://api.powerbi.com/v1.0/myorg/Pipelines/{pipeline ID}/users

with body:

{
  "identifier": "my email address",
  "accessRight": "Admin",
  "principalType": "User"
}

Using a service account with access to: Pipeline.Read.All Pipeline.ReadWrite.All

but i keep getting:

{
    "error": {
        "code": "ALM_InvalidRequest_AccessToPipelineDenied",
        "pbi.error": {
            "code": "ALM_InvalidRequest_AccessToPipelineDenied",
            "parameters": {},
            "details": [],
            "exceptionCulprit": 1
        }
    }
}

Nobody can see that pipeline except when I look at that pipeline in Postman through: https://api.powerbi.com/v1.0/myorg/admin/groups/{workspace ID}/users

Below options are enabled and account is added to: Service principals can use Fabric APIs Service principals can access read-only admin APIs Service principals can access admin APIs used for updates

What am i missing?

Thanks,

1 ACCEPTED SOLUTION
Deku
Community Champion
Community Champion

Fabric admin role doesn't give you permissions on any workspaces or artifacts in the tenant.

 

But since you are admin you should still be able to run the admin version yourself. You can quickly run it from the power bi API reference site by selection the green try me button on the API definition and it will handle authentication and everything

 

Not sure about the SVP part, assume because pipeline exists outside of workspace scope. Ive only ever tried with the admin version, with a SVP


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

View solution in original post

8 REPLIES 8
Deku
Community Champion
Community Champion

Try using the admin version.

 

https://learn.microsoft.com/en-us/rest/api/power-bi/admin/pipelines-update-user-as-admin


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!
wanwar
Frequent Visitor

Getting similar 401 error as that endpoint requires Tenant.ReadWrite.All permission which is not available to us

Deku
Community Champion
Community Champion

If you need to use the non admin version make sure the SVP has contributor rights or higher in the target worksapce


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!
wanwar
Frequent Visitor

There are 3 workspaces in the pipeline and SVP is Admin in all 3 of them

Deku
Community Champion
Community Champion

Are you not able to add yourself as admin of the workspaces? That would allow you to see the pipeline. If not you either need a fabric admin or get the tenant.readwrite for the service Principal to run the admin API


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!
wanwar
Frequent Visitor

We have 3 Fabric admins including myself and all of us are listed as Admin of Workspaces, but we dont see that pipeline in Fabric UI, so cant change it from there, my question is if our SVP is Admin in workspaces involved why I cannot use non-admin API to change the owner, 2nd if we are Fabric Admins why we dont see that pipeline ?

Deku
Community Champion
Community Champion

Fabric admin role doesn't give you permissions on any workspaces or artifacts in the tenant.

 

But since you are admin you should still be able to run the admin version yourself. You can quickly run it from the power bi API reference site by selection the green try me button on the API definition and it will handle authentication and everything

 

Not sure about the SVP part, assume because pipeline exists outside of workspace scope. Ive only ever tried with the admin version, with a SVP


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!
wanwar
Frequent Visitor

As i said I have added SVP to all 3 workspaces in question as Admin, thats what i am using to the run API call

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.