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

Call External APIs from Saviynt GSPs

aksharkay
New Contributor III
New Contributor III

Hi,

 

Is there any restriction in calling custom external APIs from Saviynt's GSP files? We have a custom role creation/update form and we wish to populate the values in those fields dynamically by fetching the details from an API response.

 

Alternatively, if anyone is aware of any other preferred approach to achieve this requirement then kindly let me know.

 

Thank you in advance!

 

Regards,

Akshar

5 REPLIES 5

rushikeshvartak
All-Star
All-Star
  • You can create custom jar 
  • and import custom jar class in gsp and try

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

Thank you for your response @rushikeshvartak! So I assume there is no restriction as such, from Saviynt. If that is the case, then we might even use in-built Javascript functions like fetch() to call any API.

Do let me know if you have any other thoughts/recommendations on this.

 

Thanks & Regards,

Akshar

Yes no restrications


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

Thank you @rushikeshvartak for your response. Just another doubt, to call any external authenticated API from the GSP, we would need to use some client credentials or username/password in the GSP to fetch the access token and call the external API.

Since hardcoding any credentials in a script is not a recommended practice, do you know of a way to fetch these values in the GSP from a Saviynt file or Saviynt keystore?

Also, if I need to call the Saviynt dataset API from the GSP, does Saviynt support a way to do it without having to explicitly fetch a Saviynt access token?

Any sort of help on this would be much appreciated!

Thanks & Regards,

Akshar

do you know of a way to fetch these values in the GSP from a Saviynt file or Saviynt keystore? --> You can check if externalconfig file is accessible there 

 if I need to call the Saviynt dataset API from the GSP, does Saviynt support a way to do it without having to explicitly fetch a Saviynt access token? --> check if dataset class is exposed in gsp


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