Manager correlation Rule

Hi Experts,

can we make API calls on a manager correlation rule?

Thanks in Advance,
Chandra Mohan S

Hi @chandramohans27,

What do you mean by making api call ?

As describe here : Manager Correlation Rule | SailPoint Developer Community

Manager correlation rule is cloud rule. That mean it’s deployed by Sailpoint.
Once you develop your rule, you can check it with rule validator https://community.sailpoint.com/t5/Professional-Services/IdentityNow-Rule-Validator/ta-p/166116

And after that, you send it to sailpoint support for deployment in your tenant.

After deployment sailpoint will give you the id of your rule or you can retrieve it by using sp-config as describe here : GET /api/rule/list - Identity Security Cloud (ISC) / Non-Public API Deprecations - SailPoint Developer Community. The existing endpoint for retrieve your tenant rule list is deprecated and the remplacement is to use spconfig.

And in final step with patch operation endpoint update-source | SailPoint Developer Community you can update your source by attaching your manager correlation rule :

image

1 Like

Thanks @baoussounda

I’m meant If there is any option to invoke HTTPS call to other applications to fetch some data.

Hi @chandramohans27,

This not recommended by Sailpoint and as ISC is multitenant solution actions that can be performed in rule are limited compare into IdentityIQ.

You can found here all description about what is possible to do in rule : Rules | SailPoint Developer Community

2 Likes

Hi @chandramohans27,

Like @baoussounda has mentioned it is not recommended to invoke these calls, but if you have no choice to do this -

Can use java.net.http packages. Here is a template:

import com.google.gson.Gson;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

HttpClient httpClient = HttpClient.newHttpClient();
HttpRequest httpRequest = HttpRequest.newBuilder().uri(URI.create(<<url>>)).POST(HttpRequest.BodyPublishers.ofString("")).build();
HttpResponse httpResponse = HttpClient.send(httpRequest, HttpResponse.BodyHandlers.ofString());
int statusCode = httpResponse.statusCode();
if(statusCode == 200)
{
Gson gson = new Gson();
Map map = gson.fromJson(httpResponse.body(),Map.class);
<<more code>>
}

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.