Azure Dynamic Groups

Brett Johnson 91 Reputation points
2022-12-06T23:30:00.943+00:00

I am trying to use the "(user.memberof -any (group.objectId -in ['Value']) rule to dynamically add anyone from a static security group to this group. Reason for this is to minimize having to change any internal employees and allow a group to be manually changed for external users. I get the error "Dynamic membership rule validation error: Invalid object type. Invalid object type '(user' specified on property 'memberof'. This rule is listed in the documentation, any insight on how to fix this?

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Harpreet Singh Matharoo 8,396 Reputation points Microsoft Employee Moderator
    2022-12-07T07:27:45.077+00:00

    Hello @Brett Johnson

    Thank you for reaching out. I see you are using in correct syntax (user.memberof -any (group.objectId -in ['Value']). When using the syntax you have shared we are bound to get error which states as below:
    268054-image.png

    I would request you to please remove bracket in the start of the rule. Correct syntax to use memberof property would be as follows:

    user.memberof -any (group.objectId -in ['groupId', 'groupId'])

    For more details, please review following document: Steps to create a memberOf dynamic group

    I hope this helps.

    ----------

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


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.