<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z00008KAYEZCA5Okta Classic EngineAnswered2024-03-25T17:16:01.000Z2022-11-01T15:29:44.000Z2022-11-08T14:48:35.000Z

4mhbt (4mhbt) asked a question.

How do I check if a string exists in a Rule expression?

We use Rules to manage user provisioning from Okta to ServiceNow. We have a ... challenging environment with multiple AD domains all syncing to and from Okta.

 

I need to be able to provision users from one such domain, but only if their Username (login) does NOT contain a substring of specific characters.

 

So, in the Rule, we already had something like

 

IF : String.stringContains(user.dn,"DC=example") : THEN : Assign to Example Group for Provisioning

 

But they added "duplicate" users that I need to EXCLUDE from ServiceNow, and therefore, I am trying to do something like

 

IF : (String.stringContains(user.dn,"DC=example") AND String.[some function for 'does not contain'](user.login,"-abc@")) THEN : Assign to Example Group for Provisionining

 

Any help would be appreciated. Thank you.


This question is closed.
Loading
How do I check if a string exists in a Rule expression?