Skip to main content
Community site session details

Community site session details

Session Id : l3gup7osaixFG98McUSDn4
Copilot Studio - General
Answered

Retrieve email address from authenticated user profile

Like (1) ShareShare
ReportReport
Posted on 18 Oct 2020 23:41:59 by 10

Hi Everyone,

I have a question that I'm sure other people would have but I can't find it asked anywhere...

I have a PVA bot published through Teams with "Teams only" authentication turned on. It's great that the bot can already detect who it is speaking to, I just want the bot to be able to know the email address of the person it is talking to so when it needs to send an email to the person, it doesn't have to ask.

 

TLDR:

Does anyone know how to retrieve the email address of the authenticated user and store as a variable? 

Categories:
  • Verified answer
    CU22081450-0 Profile Picture
    Most Valuable Professional on 19 Oct 2020 at 02:49:40
    Re: Retrieve email address from authenticated user profile

    Hi @Mitbro ,

     

    Today, the authentication return back only UserDisplayName and UserID inside the Teams.

    https://docs.microsoft.com/en-us/power-virtual-agents/advanced-end-user-authentication#authentication-variables

     

    If you want to improve and get more details about this current user, you need to follow the steps below:

     

    1- Create an action inside your Greeting topic or another topic that you want

    2- Connect this action with a new workflow inside the Power Automate

    3- Inside your Power Automate workflow, get the User data using the Microsoft Graph

    You can understand better inside these articles:

    https://powerusers.microsoft.com/t5/Connecting-To-Data/Can-I-access-Microsoft-Graph-API-via-Flow-HTTP-connector-with/td-p/105847

    https://social.technet.microsoft.com/wiki/contents/articles/53583.power-automate-flow-calling-ms-graph-api.aspx  

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Loading complete