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 / Get name of user runni...
Power Automate
Answered

Get name of user running PAD flow

(0) ShareShare
ReportReport
Posted on by 237

Is there a way to get the name of the user running the desktop flow ?

  • VJR Profile Picture
    7,635 on at

    Hi @GanCW 

    Via the PAD flow you can get it using the below in the "Run DOS command" action.

    Use any one of the below commands

    - whoami

    - echo %%username%%

     

    Not sure where you need this available but you can write it to a shared file or anywhere else depending on your usecase.

  • Verified answer
    Kaif_Siddique Profile Picture
    2,108 Super User 2024 Season 1 on at

    Hi @GanCW ,

     

    Go to System>select Get Windows Environment Variable

    Kaif_Siddique_0-1662755054561.png

    You can get username, domain etc.

     

    Let me know if any queries.


    If you like my response, please give it a Thumbs Up.
    If this helps, please Accept as solution.


    Regards
    Kaif

  • GanCW Profile Picture
    237 on at

    Thanks. This works

  • GanCW Profile Picture
    237 on at

    Thanks for the solution

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

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 414

#2
11manish Profile Picture

11manish 331 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard