Skip to content

Instantly share code, notes, and snippets.

@daxroc
Created October 4, 2017 10:04
Show Gist options
  • Save daxroc/ee9d3c52c8763c1d48a0b5397eda1e64 to your computer and use it in GitHub Desktop.
Save daxroc/ee9d3c52c8763c1d48a0b5397eda1e64 to your computer and use it in GitHub Desktop.

Interation with the Jenkins SAML plugin

import org.jenkinsci.plugins.saml.*
def sr = Jenkins.getInstance().getSecurityRealm()
println sr.loadUserByUsername("keyser.soze")
println sr.dump()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment