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 Current Environmen...
Power Automate
Answered

Get Current Environment's User GUID

(0) ShareShare
ReportReport
Posted on by 19

Hi everyone,

 

is it possible to get the current environment's GUID of the user who ran the flow, please?

 

I'm running the flow from Dynamics 365 web application.

Also, I'm using the "When a record is selected" instant trigger of the Common Data Service connector.

 

meehael_0-1600850335583.png

 

 
 

However, when trying to use the selected "User id" field, it's actually returning the GUID of the Azure Active Directory user, but this GUID doesn't exist in the current environment, that is, the running user's GUID in the current environment is different from the one in Azure AD.

 

 

Thanks in advance and best regards,

Mike

Categories:
  • Verified answer
    yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @meehael 

     

    You can add another action to List records and select the current environment and the Users entity. In the filter query, use the expression: 

  • urgal93 Profile Picture
    2 on at

    Hi,

     

    I have the exact same problem but the dynamic content is not returning an email, or the user id, or the name. I jsut get things that look like guids instead. Help !

     

    Here are the three dynamic content that i tried: User email, User id, User name.

    The dynamics content is not returning what it should, and there i was thinking it would be as easy as simply setting the ownerid to systemusers(User id)

    urgal93_0-1607962750245.png

     

  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @urgal93 

     

    Can you share more details? The solution I provided above is actually to get the user guid from the users entity. 

     

    Hope this Helps!

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

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

11manish 302 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 263

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard