Search not working due to lifecycle state

I am attempting to find users in the “Food” primary department that are active but the search I am attempting won’t seem to work:

attributes.primaryDepartment:Food AND attributes.cloudLifecycleState:active

When I run the search without the lifecycle state part (attributes.primaryDepartment:Food) it works fine, but I get all the inactive users as well. When I add the “AND attributes.cloudLifecycleState:active” part it returns the exact same results. It’s basically ignoring that part of my search.

@jared-fox ,
Let try this

attributes.primaryDepartment:"ABC Foods" AND attributes.cloudLifecycleState:active

Thanks,
Siva

1 Like

Hey Siva,
Thanks a lot! that worked immediately. By any chance do you know why it does that or have a documentation reference so I can notate it. I am getting better at searching but little stuff like that always happens.

Hi @jared-fox,

I found that the documentation mentions using double quotes for any search term containing spaces. As a best practice, always use double quotes for text searches.

Thanks,
Siva

1 Like

That makes sense. I really appreciate it.

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