Unable to Verify that Manager is not present in Sailpoint

I am trying to create a Workflow that will trigger based on a user´s manager change. Due to license limitations, we do not have all users present in Saipoint. So, if the user manager changes to a user not currently present in Sailpoint ,my objective is to trigger a acess request for a role to grant the user Sailpoint access.

To do this, I am using Get List of Identities with a search query to check if the new users manager is present in Sailpoint. My objective then is to use Verify Data Type and check if the value is null or not.

The issue seems to be that. $.getListOfIdentities.identities is never coming out as a null value, but it should, since if the Get List of Identities search query can not find the user, it does return a Null, but when it comes to verifying that data, it never actually returns a null.

Hi Luis, have you considering having some fake identity which could be the default if manager identity is not present? This could facilitate your workflow logic.

I think what you need is a Compare Numbers operator.

If the length of the identities array returned by get identities is 1 or more, then you have a result. Otherwise, your identity was not found.

This should work as the way Matt has mentioned. Please let us know if it is giving an error