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 / User needs to have Rem...
Power Automate
Answered

User needs to have Remote Desktop permissions. Error.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi, 

 

I am getting the error "Cannot create session to execute desktop flow run. User needs to have Remote Desktop permissions." This is the error code:

{
  "error": {
    "code""RdpPermissionNotGranted",
    "message""Cannot create session to execute desktop flow run. User needs to have Remote Desktop permissions."
  }
 
I believe I have everything set up and everything works in attended mode. The error code is 400. Any ideas? Thanks. 
  • Pstork1 Profile Picture
    69,661 Most Valuable Professional on at

    You say everything works in attended mode.  Does that mean you are trying to run this on another user's desktop in unattended mode?  If so, then remote Desktop permissions for the user running the desktop flow to the machine where the flow will be run is required.  To run the flow unattended it needs to start a session on the remote machine. If the user running the flow doesn't have remote desktop permission then a session can't be created.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks for the reply, could you please provide a solution of how to turn on remote desktop permission?

     

  • Verified answer
    Pstork1 Profile Picture
    69,661 Most Valuable Professional on at

    That depends somewhat on the desktop involved.  Assuming its a standalone desktop you can add the user to the Remote Desktop Users group through computer management on the PC. 

    image.png

    If its domain joined you would do the same thing, but you would use the domain Remote Desktop Users group.

  • PAJ Profile Picture
    280 on at

    My VM is already added to the Remote Desktop Users. But still I am facing the same issue. And regarding domain Remote Desktop Users group. I was not able to find one in computer management. 

    {
      "error": {
        "code""RdpPermissionNotGranted",
        "message""Cannot create session to execute desktop flow run. User needs to have Remote Desktop permissions."
      }
  • Pstork1 Profile Picture
    69,661 Most Valuable Professional on at

    Check what user is running the connection in the flow that launches the desktop flow.  That is the user that needs to be a remote desktop user on the VM, not the VM itself.

  • PAJ Profile Picture
    280 on at
    • The user which is running the flow is the same user who is the remote desktop user in VM. I just wanted to know how these RDP Permissions can be given. 
  • Pstork1 Profile Picture
    69,661 Most Valuable Professional on at

    What OS is the VM running? Is it a member of AAD or an AD?  Or is it a standalone server?

  • PAJ Profile Picture
    280 on at

    It's a member of AAD

  • Pstork1 Profile Picture
    69,661 Most Valuable Professional on at
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Mine is AD , how can i give RDP permissions for the same?

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
11manish Profile Picture

11manish 231 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 217 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 170

Last 30 days Overall leaderboard