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 : LN+pEkvAiWSJpBnUrmTURe
Power Automate - Building Flows
Answered

Delete Users

Like (0) ShareShare
ReportReport
Posted on 21 Feb 2024 09:14:31 by 765

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.

 

 

I have the same question (0)
  • Verified answer
    ivan_apps Profile Picture
    2,187 Moderator on 21 Feb 2024 at 10:12:57
    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

     

  • Caleb62881177 Profile Picture
    765 on 21 Feb 2024 at 10:17:17
    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
    v-yetonggu-msft Profile Picture
    on 21 Feb 2024 at 10:27:42
    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
    765 on 21 Feb 2024 at 13:04:13
    Re: Delete Users

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

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 655 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 371 Moderator

#3
chiaraalina Profile Picture

chiaraalina 276

Last 30 days Overall leaderboard