Jenkins Web Services Connector – Aggregating Matrix-Based Permissions (Groovy Script to JSON Issue)

Hi all,

I’m working on integrating Jenkins with SailPoint IdentityNow using the Web Services Connector. The challenge I’m facing is around aggregating entitlements (permissions) because Jenkins uses a Matrix Authorization Strategy.

In Postman, I’m able to successfully execute the Groovy script and fetch Jenkins permissions.

But when I try the same in SailPoint Web Services Connector, it doesn’t work. SailPoint sends the script as text/plain in the Body of the operation, which Jenkins does not accept as a valid script. Because of this, I get no result back.

Is there a recommended way to aggregate Jenkins entitlements in SailPoint when permissions come only from Groovy scripts?

  1. Has anyone successfully converted Jenkins permission map → JSON and consumed it in SailPoint entitlement aggregation?
  2. What is the best practice to pass Groovy scripts to Jenkins via Web Services Connector (since it doesn’t accept x-www-form-urlencoded)?

Please consider addressing the following when creating your topic:

  • What have you tried?
  • What errors did you face (share screenshots)?
  • Share the details of your efforts (code / search query, workflow json etc.)?
  • What is the result you are getting and what were you expecting?

are you able to do account aggregation?

Yes, i am able to do account aggregation, while doing account aggregation i need not have to pass anything in body.

ok have you checked entitlement attribute in account schema?