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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Help automating Enviro...
Power Automate
Unanswered

Help automating Environment User cleanup

(0) ShareShare
ReportReport
Posted on by 369

In my organization, I have employees who work for us for 1-2 months out of the year. When they leave, I offboard them, and when they come back, I onboard them. This creates a problem in our Power Apps environment, because Power Apps creates a duplicate user account for the person, which makes sense because it has no way of knowing that the "new person" is the same as the old person.

 

The reason I'm posting this in Power Automate is because I'm looking for a way to automate the following process I currently have to do manually for each employee in this scenario.

  1. In Power Apps admin center, search for the employee's email address.
  2. If only the old account shows up, click "Add user" and manually add the new user and assign security roles.
  3. Select the old account and click "Reassign records" and reassign all records to the new account.
  4. Delete, and then permanently delete the old account.

Are there documented API calls that I could use to make create a custom connector for steps 2, 3, and 4?

Categories:
I have the same question (0)

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 375 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 269 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 127 Most Valuable Professional

Last 30 days Overall leaderboard