We are using exchange 2016 hybrid environment, we create users in onprem and migrate to online. In Azure AD I can see Office location for the users i.e it is synced from onprem to azure AD.
I want to create dynamic unified group for one office location lets say office location is abc. In abc location, some users have office location as abc and for some users office location is remote, abc. I want pull users with office location abc and abc, remote. In Azure AD for the unified group, under dynamic membership rules i want to try the below queries but i am not sure, please guide me.
(user.Office location -eq "*abc*") -or (user.Office location -eq "*abc*" and "*remote*" )
(user.Office location -contains "*abc*") -or (user.Office location -eq "*abc*" and "*remote*" )
I am only looking for key words abc ,remote, after abc or before abc, after remote or before remote it can be anything.