Exclude user from a dynamic group based on group membership

John Oliveros 26 Reputation points
2022-10-26T10:43:54.927+00:00

Hi,

I have a dynamic group with few of users that I wanted to exclude based on the group (Membership Type: Assigned) they belong to.

I am playing around this paramater user.memberof -any (group.objectId -in ['value']) but can't get it to work.

First three parameters are working but when I include user.memberof it started to fail.

Any thoughts around this? Is this even feasible?

254279-dynamic-distro.jpg

Microsoft Security Microsoft Entra Microsoft Entra ID
{count} vote

5 answers

Sort by: Most helpful
  1. Stephannn 11 Reputation points
    2023-01-02T12:17:45.343+00:00

    Hi there,
    anybody may have an idea about a timeline of this feature? The combination between memberof and any other rule would be very helpful, or an exclusion of members of another group.
    Regards
    Stephan

    2 people found this answer helpful.
    0 comments No comments

  2. Aaron Gill 10 Reputation points
    2023-04-06T13:15:21.9966667+00:00

    This is definitely Not Possible at this point (see below). You can't exclude based on group membership (only include) because you can't use other operators with it.
    Hopefully soon. I know many good uses for it. Preview limitations

    • Each [ Snipped Preview Limitations for brevity] .... time.
    • MemberOf can't be used with other operators. For example, you can't create a rule that states “Members Of group A can't be in Dynamic group B.”
    • The objects specified in the rule can't be administrative units.
    2 people found this answer helpful.
    0 comments No comments

  3. JimmySalian-2011 42,491 Reputation points
    2022-10-26T11:21:34.593+00:00

    Hi Darkrai,

    I think you will have to use the new preview feature of Dynamic Groups and that should do the trick so follow this page and new filter defined here

    Hope this helps.
    JS

    ==
    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    1 person found this answer helpful.
    0 comments No comments

  4. Victor Alberto Castellanos de Leon 0 Reputation points
    2024-11-28T00:46:30.9666667+00:00

    Hi everyone, I also hope that this feature is enabled soon because I have the same situation, I need to exclude users from a group from my dynamic group but everything I have read online says that this is not possible, you can only filter by name but it does not help if you have an entire population to exclude from said group.

    0 comments No comments

  5. Mark Burland 1 Reputation point
    2024-12-09T12:35:17.9233333+00:00

    Incredible that this is still a PREVIEW feature! I could really make use of it for group based licensing. If we need to license a class for a particular product it would be so straightforward, except the owners of each class are their class teachers, who require different licenses. It's a real pain.

    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.