web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - General Discussion
Answered

Creating a dynamic SharePoint list based on a AD group?

(0) ShareShare
ReportReport
Posted on by 26

Hi 

 

I am trying to wrap my head around how to create a power automate flow that keeps a staff list updated to the current employees. 

 

I have an AD group that i keep updated with all my current employees, is it possible to keep a list updated so when a person is added to this AD group a power automate flow gets triggered to add this user to the Sharepoint list and vice versa when the user is removed from the AD group a flow is triggered to remove said user from the SharePoint List? 

 

I have the same question (0)
  • Verified answer
    Rhiassuring Profile Picture
    8,690 Moderator on at
    Re: Creating a dynamic SharePoint list based on a AD group?

    There's a Power Automate trigger called "When a Group Member is Added or Removed".  You can use that, and point it at the group you're monitoring.

     

    Next, a condition. You'll evaluate this condition:

     

    triggerBody()?[1]?['@removed/reason'] is equal to deleted
     
    If "true", then that means the user was removed. If "false", then a user was added.
     
    So on the "yes" path, you'll "Get Items" from your list, and Filter Query on the user to get the ID, and delete the record. 
     
    On the "no" path, you'll add a new record.

     

     

  • WOTPRO Profile Picture
    26 on at
    Re: Creating a dynamic SharePoint list based on a AD group?

    Thank you very much, it worked like a charm once i figured out how to use Filter Query and a few other bits. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 535 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 348 Moderator

#3
developerAJ Profile Picture

developerAJ 262

Last 30 days Overall leaderboard