skip to Main Content

Hi guys excuse me could you help me with this question of azure I have this:

The question

The question is: Which users are members of ADGroup1 and ADGroup2? To answer, select the appropriate options in the answer area.

So the clue to solve this question are: ‘"user.city -contains "SEA" and
user.city -contains "Sea*"’ statements.

I undestand that the -match is like a regex and the * is going to match everything like Seaaaaa or Sea and in azure this type of things are not case sensitive.

But how -contains works? is like this ExampleSeaExample or SeaExample and the string Sea is contained ? could you help me out please?

2

Answers


  1. Chosen as BEST ANSWER

    Thank you very much for you time it is clear for me now.


  2. But how -contains works? is like this ExampleSeaExample or SeaExample and the string Sea is contained ? could you help me out please?

    In the above example contains will find the string Sea without being case sensitive and will filter ExampleSeaExample, SeaExample and also SEAexample and add it in the dynamic security group.

    Refer this MS Document to understand Contains and other expression concepts.

    Contains as the name suggests will check if a particular word contains a particular string without being case sensitive.

    Dynamic Security filter example:-

    enter image description here

    The above filter will add the User with Property City that contains a string Lo > Here the User with City name London and london both will be added.

    Now, coming to your question:-

    Which users are members of ADGroup1 and ADGroup2?

    ADGroup1 is a security group with filter – ‘"user.city -contains "SEA" So User1- Seattle, User2- Sea, User3- SEATTLE, User4- SEA will be added in the ADGroup1 as all of them contains Sea inside.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search