<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Jenkins DSL Authorization Matrix loop	</title>
	<atom:link href="https://emilwypych.com/2018/06/27/jenkins-dsl-authorization-matrix-loop/feed/" rel="self" type="application/rss+xml" />
	<link>https://emilwypych.com/2018/06/27/jenkins-dsl-authorization-matrix-loop/</link>
	<description>by Emil</description>
	<lastBuildDate>Wed, 09 Mar 2022 08:06:21 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.4</generator>
	<item>
		<title>
		By: Emil		</title>
		<link>https://emilwypych.com/2018/06/27/jenkins-dsl-authorization-matrix-loop/#comment-2393</link>

		<dc:creator><![CDATA[Emil]]></dc:creator>
		<pubDate>Wed, 09 Mar 2022 08:06:21 +0000</pubDate>
		<guid isPermaLink="false">https://emilwypych.com/?p=502#comment-2393</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://emilwypych.com/2018/06/27/jenkins-dsl-authorization-matrix-loop/#comment-2392&quot;&gt;Kingster&lt;/a&gt;.

Hi, thanks a lot! Yeah, to be honest, I now use only groups and I can specify them in the DSL like users. But I use configure block, so I can specify something like this (in my case it&#039;s Authorization Matrix compatible with Azure AD, but schema is exactly the same for classic AM, it&#039;s just another class):

 configure {
            it / &#039;properties&#039; / &#039;com.microsoft.jenkins.azuread.AzureAdAuthorizationMatrixProperty&#039; {
                inheritanceStrategy(class: &#039;org.jenkinsci.plugins.matrixauth.inheritance.InheritGlobalStrategy&#039;)
                permission(&#039;hudson.model.Item.Read:username&#039;)
                permission(&#039;hudson.model.Item.Read:groupname&#039;)
            }
        }
And it works perfectly.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://emilwypych.com/2018/06/27/jenkins-dsl-authorization-matrix-loop/#comment-2392">Kingster</a>.</p>
<p>Hi, thanks a lot! Yeah, to be honest, I now use only groups and I can specify them in the DSL like users. But I use configure block, so I can specify something like this (in my case it&#8217;s Authorization Matrix compatible with Azure AD, but schema is exactly the same for classic AM, it&#8217;s just another class):</p>
<p> configure {<br />
            it / &#8216;properties&#8217; / &#8216;com.microsoft.jenkins.azuread.AzureAdAuthorizationMatrixProperty&#8217; {<br />
                inheritanceStrategy(class: &#8216;org.jenkinsci.plugins.matrixauth.inheritance.InheritGlobalStrategy&#8217;)<br />
                permission(&#8216;hudson.model.Item.Read:username&#8217;)<br />
                permission(&#8216;hudson.model.Item.Read:groupname&#8217;)<br />
            }<br />
        }<br />
And it works perfectly.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Kingster		</title>
		<link>https://emilwypych.com/2018/06/27/jenkins-dsl-authorization-matrix-loop/#comment-2392</link>

		<dc:creator><![CDATA[Kingster]]></dc:creator>
		<pubDate>Tue, 08 Mar 2022 13:51:38 +0000</pubDate>
		<guid isPermaLink="false">https://emilwypych.com/?p=502#comment-2392</guid>

					<description><![CDATA[Hi, Great article, 
Is there a way to specify whether the authorization entity we give access to is a group or a user?

In the XML code I can specify as
      USER:hudson.model.Item.Configure:deployuser
 GROUP:hudson.model.Item.Read:anonymous

Is there a way to specify it in the DSL:

pipelineJob(&#039;__job_name__&#039;) {
    authorization {
        blocksInheritance()
        permission(&#039;hudson.model.Item.Configure&#039;,deployuser&#039;)
        permission(&#039;hudson.model.Item.Read:anonymous&#039;)
    }

There is an comment in https://stackoverflow.com/questions/70454192/jenkins-ambiguous-permission which answers my question but not sure how to implement it.
Thanks.]]></description>
			<content:encoded><![CDATA[<p>Hi, Great article,<br />
Is there a way to specify whether the authorization entity we give access to is a group or a user?</p>
<p>In the XML code I can specify as<br />
      USER:hudson.model.Item.Configure:deployuser<br />
 GROUP:hudson.model.Item.Read:anonymous</p>
<p>Is there a way to specify it in the DSL:</p>
<p>pipelineJob(&#8216;__job_name__&#8217;) {<br />
    authorization {<br />
        blocksInheritance()<br />
        permission(&#8216;hudson.model.Item.Configure&#8217;,deployuser&#8217;)<br />
        permission(&#8216;hudson.model.Item.Read:anonymous&#8217;)<br />
    }</p>
<p>There is an comment in <a href="https://stackoverflow.com/questions/70454192/jenkins-ambiguous-permission" rel="nofollow ugc">https://stackoverflow.com/questions/70454192/jenkins-ambiguous-permission</a> which answers my question but not sure how to implement it.<br />
Thanks.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Emil		</title>
		<link>https://emilwypych.com/2018/06/27/jenkins-dsl-authorization-matrix-loop/#comment-2384</link>

		<dc:creator><![CDATA[Emil]]></dc:creator>
		<pubDate>Tue, 08 Feb 2022 20:26:58 +0000</pubDate>
		<guid isPermaLink="false">https://emilwypych.com/?p=502#comment-2384</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://emilwypych.com/2018/06/27/jenkins-dsl-authorization-matrix-loop/#comment-2383&quot;&gt;Manish&lt;/a&gt;.

What do you exactly mean? You can update permissions by DSL and manually, at the project level in the configuration of the project, or globally – inside the Security section of Jenkins configuration. Does it answer your question?]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://emilwypych.com/2018/06/27/jenkins-dsl-authorization-matrix-loop/#comment-2383">Manish</a>.</p>
<p>What do you exactly mean? You can update permissions by DSL and manually, at the project level in the configuration of the project, or globally – inside the Security section of Jenkins configuration. Does it answer your question?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Manish		</title>
		<link>https://emilwypych.com/2018/06/27/jenkins-dsl-authorization-matrix-loop/#comment-2383</link>

		<dc:creator><![CDATA[Manish]]></dc:creator>
		<pubDate>Tue, 08 Feb 2022 12:03:43 +0000</pubDate>
		<guid isPermaLink="false">https://emilwypych.com/?p=502#comment-2383</guid>

					<description><![CDATA[is there any way i could updated the existing authorization matrix permissions]]></description>
			<content:encoded><![CDATA[<p>is there any way i could updated the existing authorization matrix permissions</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/

Object Caching 32/60 objects using Disk
Page Caching using Disk: Enhanced 
Minified using Disk

Served from: emilwypych.com @ 2025-11-29 03:32:03 by W3 Total Cache
-->