Dynamic Group Question - How can I remove a user from a dynamic group on specified date and time?

IT-User9733 71 Reputation points
2020-04-25T20:24:07.703+00:00

Hi,

I have created a dynamic group, and setup my dynamic membership rule so that my user gets added to the group.

But, I want to put something in there that removes them from the group at a certain date and time.

Is this possible?

So what I am trying to say is :

  1. Add Bob into the Dynamic Sales group based on his department value of Sales.
  2. And then Remove Bob from the Dynamic Sales group after 01/05/2020 12:00PM

Thanks

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

3 answers

Sort by: Most helpful
  1. Vasil Michev 123.5K Reputation points MVP Volunteer Moderator
    2020-04-26T06:49:43.87+00:00

    The way to remove someone from a Dynamic group is to adjust the membership filter/rule. The way to perform this on a given date/time is to schedule it via PowerShell script or similar.

    1 person found this answer helpful.

  2. thgibard-MSFT 356 Reputation points
    2020-04-26T21:54:00.84+00:00

    I've not done such script based on the time but I think you should take a look on Azure Automation. It could be executed directly in Azure rather than use a PowerShell script deployed on a server - https://azure.microsoft.com/fr-fr/services/automation/.


  3. AmanpreetSingh-MSFT 56,951 Reputation points Moderator
    2020-04-27T07:56:14.42+00:00

    @IT-User9733 You should consider using Access Review. Check https://learn.microsoft.com/en-us/azure/active-directory/governance/create-access-review for more details.

    -----------------------------------------------------------------------------------------------------------

    Please "Accept as answer" wherever the information provided helps you to help others in the community.


Your answer

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