Re: Restrict view of certain jobs under folder.

2018-10-19 Thread gotviseryon
As per the documentation of that plugin, below, the moment I grant access 
to ^foo.* they'll be able to see everything under foo right?  In my case, 
everything under 'A'.  Or, may be am not getting it right.  Could you 
please help me on how to set it up?

First, assign that user/ group to read/ discover permissions with pattern " 
^foo.* "*,* then assign that same user/ group to the more particular 
permissions with pattern " ^foo/bar.* "




On Friday, October 19, 2018 at 3:33:34 PM UTC-4, Daniel Beck wrote:
>
>
>
> > On 19. Oct 2018, at 19:16, gotvi...@gmail.com  wrote: 
> > 
> > We are using 
> https://wiki.jenkins.io/display/JENKINS/Role+Strategy+Plugin this plugin. 
>  Unfortunately, as per this plugin we can only restrict users from other 
> team to modify the jobs.  Cannot completely hide the jobs.  Any 
> suggestions? 
>
> This is possible, you just need two different roles, and regexes that 
> match the folder and A1/A2 specifically without including the other. Then 
> grant Item/Read based on that, and don't make it a global role permission.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/71ddcda5-ddae-447d-894d-d188f9edadc0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Restrict view of certain jobs under folder.

2018-10-19 Thread Daniel Beck



> On 19. Oct 2018, at 19:16, gotviser...@gmail.com wrote:
> 
> We are using https://wiki.jenkins.io/display/JENKINS/Role+Strategy+Plugin 
> this plugin.  Unfortunately, as per this plugin we can only restrict users 
> from other team to modify the jobs.  Cannot completely hide the jobs.  Any 
> suggestions?

This is possible, you just need two different roles, and regexes that match the 
folder and A1/A2 specifically without including the other. Then grant Item/Read 
based on that, and don't make it a global role permission.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/8EF4B910-A86F-490E-941E-F46D6C68FDE4%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.