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 Apps / Delete user from envir...
Power Apps
Answered

Delete user from environment

(0) ShareShare
ReportReport
Posted on by 20
Hi everyone, I had added a user to my test environment and now I can’t delete it permanently, because there seems to be still records of its property in the table "owner_msdyn_dataflow".
I tried to reassign the records but I got this error: "Operation failed - Error code: 0x80040265. This operation is not supported".
How can I solve this problem?
Categories:
I have the same question (0)
  • Verified answer
    Ravi-Prajapati Profile Picture
    416 Super User 2025 Season 2 on at

    Try these approaches in order:

    1️⃣ Reassign Dataflows from Power Platform Admin Center

    Instead of reassigning records directly in Dataverse, reassign ownership of the dataflows from the Power Platform Admin Center:

    1. Go to Power Platform Admin Center.
    2. Navigate to Environments > Select your Test Environment.
    3. Click Resources > Dataflows.
    4. Find the dataflows owned by the user.
    5. Click Edit and change the owner to another user.
    6. Save changes and try deleting the user again.

    2️⃣ Remove the User from the Security Role

    Even if the user owns records, sometimes removing security roles first helps:

    1. Go to Power Apps > Settings > Users.
    2. Select the user and remove all security roles.
    3. Try deleting the user again.

    3️⃣ Assign Another Owner Using a Power Automate Flow

    If direct reassignment fails, try using Power Automate:

    1. Create a new Flow in Power Automate.
    2. Use the Dataverse "Update a row" action.
    3. Select Table: msdyn_dataflow.
    4. Set a new Owner (systemuser).
    5. Run the Flow and verify ownership change.

    4️⃣ Delete the User Using PowerShell

    If nothing works, force deletion using PowerShell:

    1. Install the Power Platform CLI.
    2. Run:
      Remove-CrmRecord -EntityLogicalName "systemuser" -Id "<UserGUID>"
      Replace <UserGUID> with the actual User ID.

    ⚠️ Last Resort: Open a Microsoft Support Ticket

    If the error persists, it may require backend intervention from Microsoft Support. You can open a ticket at:
    Power Platform Support

  • SamLele Profile Picture
    20 on at
    Thank you @Ravi-Prajapati for your help.
    With the approach n.1 I solved my problem.

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…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard