Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Rest Connection Pre-request script

MattW
New Contributor II
New Contributor II

We have been fighting a connection having intermittent issues for a bit.  After reviewing the setup in Postman a bit closer, the application is using a pre-request script that is generating a JWT token.  When the connection was setup in Saviynt(done by another user), it was setup like an OAUTH2 connection.  The connection is working about 70% of the time.  The other 30% or so it throws a null error and will fail to either process an import job, or a provisioning job.  With no changes, either of these may work on the next attempt with no changes. 

I had initially blamed it as an internal issue, but after reviewing I am beginning to suspect that the connection itself may be the problem.  I found a few forum posts that looked to have referenced a setup similar, and responses have been mixed from a simple "no, post on the ideas forum" or a possible yes, but not much elaboration on how to pull it off.

I have attached the 3 configurations below with potentially sensitive information removed. The API itself is for an in-house custom application.  We can repeatedly and successfully provision/deprovision and pull data from the API using postman but attempts to replicate that to Saviynt have not proven as fruitful.  

Thanks for any assistance that can be provided.

2 REPLIES 2

rushikeshvartak
All-Star
All-Star

Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

  • Yes, the connection works within Saviynt, but only some of the time.  Other times (provisioning for example) it will return with comments: "{"JobFunction":{"headers":null,"message":"","statusCode":null,"description":null,"status":"Failed"}}".  If I run that job again, it would likely complete successfully both within Saviynt and the application.  Within Postman, I do not believe that I can setup this connection using the built-in Authorization tools instead of the script. 
  • Not sure which part you are wanting the CURL generated from.  This is from the authorization request. Everything in Postman has its authorization pointed to be inherited from the parentMattW_0-1725902520818.png  
    Below would be an addAccess request:
    MattW_1-1725903263124.png