Thanks Ivan, this is a great start and it is properly listing folder-level credentials. I just need to make the output more user friendly, especially adding the scope of the credential.
On Mon, 14 Sep 2020 at 18:08, Ivan Fernandez Calvo <[email protected]> wrote: > I think this groovy script is what you want > https://github.com/cloudbees/jenkins-scripts/blob/master/list-credential.groovy > > El lunes, 14 de septiembre de 2020 a las 14:57:33 UTC+2, > [email protected] escribió: > >> Hello >> >> as a global instance admin, is there a way i can view (not decrypt) all >> credentials stored in it? >> *<instance_url>/credentials* will only show global/system credentials. >> >> If a credential is created within a Folder, the only way to view it is to >> go to url *<instance_url>/job/<folder_name>/credentials/store/folder/* >> >> This is quite difficult to track all those credentials provided Folders >> are used quite extensively on our instance. >> The same also apply to user credentials, although it is not on our >> immediate concerns. >> >> Is there any option to activate on Jenkins to get such "recursive" view >> on credentials, or shall we go for a script to execute? Any pointer? >> >> Regards >> > -- > You received this message because you are subscribed to a topic in the > Google Groups "Jenkins Users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/jenkinsci-users/l-3IuWtaCOs/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/31f5dd0f-1069-4cac-81bc-470788914400n%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/31f5dd0f-1069-4cac-81bc-470788914400n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAG_uJ%2BDquA_takO1wUrs-1phj1rNT_UaB-Fzu8NaWtsHCP5UBA%40mail.gmail.com.
