<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
0D54z00008FVPfsCAHOkta Classic EngineAdministrationAnswered2025-10-11T09:00:47.000Z2022-10-18T18:57:21.000Z2023-02-05T11:34:31.000Z

NathanM.58693 (Customer) asked a question.

Create a group with an AND and a bunch of or operations

I'm trying to create a group based on job titles from a specific location.

 

Specifically, I want only people from Knoxville, then I only want people with one of 10 job titles, out of about 20.

 

I have created the query but its not working correctly.

 

This is the query I'm trying to run. I can pull in all of the job titles, but it won't restrict the results to people in that specific location. Any ideas?

 

user.title=="Salesperson"

 

or

 

user.title=="Technician, Body Shop"

 

or

 

user.title=="Warranty Writer"

 

and

 

user.Location=="Airstream of Knoxville"

 


  • b5n6c (b5n6c)

    Hi Nathan McKenzie ,

     You can try this expression by using a bracket for the "Or" operation ,

    ( user.title=="Salesperson" or user.title=="Technician, Body Shop" or user.title=="Warranty Writer" )and user.Location=="Airstream of Knoxville"

     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. 

    Expand Post
This question is closed.
Loading
Create a group with an AND and a bunch of or operations