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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / I am looking for a way...
Power Automate
Unanswered

I am looking for a way to list deleted users

(0) ShareShare
ReportReport
Posted on by 894

Is there a way to find this information via Power Automate in any way? I just need to check if the UPN is listed. Ideally id love to be able to restore it from Power Automate but if not, then we will do it manually. 

If you advice about Graph, I don't have permission to use it and would need some understanding on how to assign the right permissions to use it for these kinds of actions.

Categories:
I have the same question (0)
  • Kosenurm Profile Picture
    802 on at

    If you don't have permission to use the Microsoft Graph API in Power Automate, one alternative approach to check if a UPN is listed in your organization is to use the "List users" action in the "Office 365 Users" connector.

    Here's how you can use the "List users" action to check if a UPN is listed:

    Add the "List users" action to your flow.

    In the "Filter query" field, enter the following query to filter the list of users by UPN: userPrincipalName eq '[UPN]'

    Replace [UPN] with the UPN you want to check.

    Use a "Condition" action to check if the filtered list of users is empty. If the list is empty, the UPN is not listed in your organization.

    If the UPN is not listed, you can use the "Send an email" action or other action to notify the appropriate people.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 273 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 149 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 144 Super User 2026 Season 2

Last 30 days Overall leaderboard