Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Delete Users

(0) ShareShare
ReportReport
Posted on by 745

Hello Everyone,

 

I would like to build a flow that loops through a SharePoint List and checks if the users in AD users are also present in the SharePoint List that contains DisplayNames of a user and deleted SharePoint List column if the user doesn't exist in AD, but exist in the SharePoint List.

 

Example:

 

SharePoint List

sh1.jpg

 

AD Accounts

 

sh2.jpg

 

Output:  

SharePoint List after the flow has ran successfully.

sh3.jpg

 

I hope my examples helps.

 

 

  • Caleb62881177 Profile Picture
    745 on at
    Re: Delete Users

    @v-yetonggu-msft @ivan_apps - Thank you both for your speedy response, I really appreciate all your efforts.

  • Verified answer
    v-yetonggu-msft Profile Picture
    on at
    Re: Delete Users

    Hi @Caleb62881177 ,

    I did a test for your reference.

    Delete User Before:

    vyetonggumsft_5-1708511246131.png

    Delete User After:

    vyetonggumsft_4-1708511138145.png

    In my scenario:

    vyetonggumsft_0-1708510328660.png

    vyetonggumsft_2-1708510927392.png

    vyetonggumsft_3-1708510973957.png

    Best Regards,

    Sunshine Gu

  • Caleb62881177 Profile Picture
    745 on at
    Re: Delete Users

    HI @ivan_apps ,

    Sorry, I still haven't gotten used to the new designer of Power Automate.

     

    Is it possible to post the old designer of Power Automate and expanded the Actions, please?

  • Verified answer
    ivan_apps Profile Picture
    2,187 Super User 2025 Season 1 on at
    Re: Delete Users

    Should be easy enough to use the Entra ID Get Users action, enter the EmailAddress column and see if it fails or not. Unfortunately when a user retrieval is not found the result is not an empty array or "Not Found", the action will error.  So you will have to add an action after the error that has a 'Run After' configuration that is only for the 'Get Users' failed condition, as well as a success condition.  

     

    It would end up looking like this:

    ivan_apps_0-1708510332087.png

     

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >