Please advise on how to proceed, for a successful integratio between Sonrai Security and SailPoint IdentityNow.
I am trying to pull a Saved Query from Sonrai into SailPoint. The Saved Query in Sonrai is a GraphQL script which returns a list of records.
Any suggestion would be a great help. Many Thanks.
I believe GraphQL is extension of REST, if it be the case, WebServices connector can support integration. What is your scope of work for the integration, manae the user list from Sonrai to IDN?
Thanks Suresh for the reply. We are trying to pull user list based on a certain search criteria from Sonrai to IDN.
I tried the Webservice Connector, but I am stuck in the Body where I need to provide a search query in GraphQL. How to code that in IdentityNow.
Postman:
IDN:
How do I set the body to GraphQL
Have you considered using cURL instead?
Yes.
Also I converted the GraphQL query to JSON and updated the Header parameter âContent-Type = application/jsonâ
GraphQL to JSON and used in Raw Body:
{âqueryâ: âquery Tickets { Tickets( where: { status: { value: "NEW" } ticketKey: { value: "srn:supersonrai::ControlPolicy/09a8467a-caee-49cf-a8fe-8fb2f33276c6" } } ) { count items (limit:1 offset:0) { resourceName evidence { policyEvidence } } }}â}
Also the Curl Command:
curl --location âhttps://XXXXXXX.sonraisecurity.com/graphqlâ
âheader âContent-Type: application/jsonâ
âheader âAuthorization: Bearer XXXXXâ
âdata â{âqueryâ: âquery Tickets { Tickets( where: { status: { value: "NEW" } ticketKey: { value: "srn:supersonrai::ControlPolicy/8fe-8fb2f33276c6" } } ) { count items (limit:1 offset:0) { resourceName evidence { policyEvidence } } }}â}â
In both the cases, I am getting 400 Bad Request Error
Have you tried \"
in place of "
inside the query string under cURL data? ie
\"NEW\"
insetad of "NEW"
\"srn:supersonrai::ControlPolicy/8fe-8fb2f33276c6\"
instead of "srn:supersonrai::ControlPolicy/8fe-8fb2f33276c6"
Thanks Nithesh. I deleted the methods and tried it again and that worked. Thank you all for suggestion and ideas.
Good to know it is working now
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.