
BriaH.27600 (Customer) asked a question.
I am wanting to add users to the group that doesn't contain email domain value examples "@jackson.com" "@kraft.com"
I have tried a single value !String.stringContains(user.email, "@jackson.com") and it seemed to work. But when I try to add the operator:
!String.stringContains(user.email, "@jackson.com") OR
!String.stringContains(user.email, "@kraft.com") both values become true.
Can someone explain why that may be and potentially provide possible solution?

Hi @BriaH.27600 (Customer) , Thank you for reaching out to the Okta Community!
You were on the right track, you just need to adjust it a bit.
!(String.stringContains(user.email, "@jackson.com") OR
String.stringContains(user.email, "@kraft.com"))
Please test it out and let me know if that work for you.
If my answer helped, remember to mark it as best to increase its visibility for other members of the Okta Community who might have the same questions as you.
Hope my answer helps!
--
Help others in the community by liking or hitting Select as Best if this response helped you.