{"id":11906,"date":"2025-10-02T19:49:52","date_gmt":"2025-10-02T19:49:52","guid":{"rendered":"https:\/\/putridparrot.com\/blog\/?p=11906"},"modified":"2025-10-02T19:49:52","modified_gmt":"2025-10-02T19:49:52","slug":"how-to-resolve-pipeline-does-not-have-permissions-to-use-the-referenced-service-connections","status":"publish","type":"post","link":"https:\/\/putridparrot.com\/blog\/how-to-resolve-pipeline-does-not-have-permissions-to-use-the-referenced-service-connections\/","title":{"rendered":"How to resolve &#8220;Pipeline does not have permissions to use the referenced service connection(s)&#8221;"},"content":{"rendered":"<p>I&#8217;ve been caught out by this before and then have to remind myself how to fix it.<\/p>\n<p>You have an Azure Devops pipeline (mine&#8217;s a YAML based pipeline). You run the pipeline and get the error message &#8220;Pipeline does not have permissions to use the referenced service connection(s) XXX&#8221; (where XX is your SPN etc.).<\/p>\n<p>This is simple to fix by correctly configuring your security.<\/p>\n<ul>\n<li>Go to Project Settings | Service Connections within Azure Devops<\/li>\n<li>Filter or otherwise find the SPN that you need to add the permission to and click it<\/li>\n<li>In the top-right corner, click the vertical &#8220;&#8230;&#8221; (kebab menu) and select the Security option<\/li>\n<li>Scroll down to the pipeline permissions and add your pipeline to the list of permissioned pipelines using the + button<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been caught out by this before and then have to remind myself how to fix it. You have an Azure Devops pipeline (mine&#8217;s a YAML based pipeline). You run the pipeline and get the error message &#8220;Pipeline does not have permissions to use the referenced service connection(s) XXX&#8221; (where XX is your SPN etc.). [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[728],"tags":[],"class_list":["post-11906","post","type-post","status-publish","format-standard","hentry","category-azure-devops"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/11906","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/comments?post=11906"}],"version-history":[{"count":4,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/11906\/revisions"}],"predecessor-version":[{"id":11950,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/11906\/revisions\/11950"}],"wp:attachment":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/media?parent=11906"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/categories?post=11906"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/tags?post=11906"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}