Dynamic Unifed group

Glenn Maxwell 11,496 Reputation points
2020-07-27T18:02:48.387+00:00

Hi Experts

I am using exchange hybrid environment, i have custom attributes in AD for all users which are synced to Azure AD. For example
I have manager Tim, Time reports to Roger and Roger Reports to John, i want to create dynamic unified group for Johns Organization,please help me with the syntax. i have permanent employees who employee ids stats with 5000, for example 5000,5001 and temporary employee whose employee ids starts with T1000, T1001

for example user todd has this AD attribute in extensionAttribute05---|John|Roger|<Tim>|

How do i use the below information and create a query to build unified group.

John Temporary-----(user.extensionAttribute05 -like 'John') and (user.employeeId -like 'T*')
John Permanent-----(user.extensionAttribute05 -like 'John') and (user.employeeId -notlike 'T*')

13962-tes.jpg

Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,576 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,667 questions
{count} votes

Accepted answer
  1. KyleXu-MSFT 26,266 Reputation points
    2020-07-29T05:38:07.103+00:00

    You also need to use "-startsWith" for "extensionAttribute05".

    (user.extensionAttribute05 -startsWith "|John")  
    

    14156-snipaste-2020-07-29-13-37-03.png

    0 comments No comments

6 additional answers

Sort by: Most helpful
  1. Glenn Maxwell 11,496 Reputation points
    2020-07-28T13:58:47.517+00:00

    i have the below dynamic membership rule but i am not getting any users populated
    (user.extensionAttribute10 -eq "'john'") and (user.employeeId -ne "'T*'")

    0 comments No comments

  2. Glenn Maxwell 11,496 Reputation points
    2020-07-29T03:18:00.88+00:00

    will the below query work, becoz no members have been found
    14145-test2.jpg

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.