Jenkins - getting "No type prefix:" when assigning roles

Viewed 4810

I am trying to assign roles to users in Jenkins using the 'role based strategy' plugin. When I do that, I am getting a red text that says "No type prefix:" in front of every user that I am assigning a role to. Please advise how this can be removed.: enter image description here

I am very new to Jenkins so any suggestions will be very helpful.

Regards Ramesh

3 Answers

use "USER:" for user and "GROUP:" for group .. eg "USER:ABC" ..this changed with the recent plug in update ..

In order to resolve we have to add twice. In your example

Under Global roles

  1. Enter only jenkins and click on Add and click on admin checkbox
  2. Enter USER:jenkins and click on Add and click on admin checkbox
  3. Apply
  4. Save

Similarly for all other users which needs admin role can be mapped. The same approach can be used under Item and Node roles if it is configured

By doing this we would still see > No type prefix: jenkins however role based permission would work in desired way.

If you are locked out then use following link to get access again- https://www.jenkins.io/doc/book/security/access-control/disable/ and follow above steps.

Just update plugins:

  • Matrix Authorization Strategy Plugin
  • Role-based Authorization Strategy
Related