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 / Copilot Studio / Retrieve User Details ...
Copilot Studio
Unanswered

Retrieve User Details in Virtual agent using flows

(0) ShareShare
ReportReport
Posted on by 13

Hi Everyone,

 

I am trying to get user details using graph APIs "https://graph.microsoft.com/v1.0/me" in power automate. However, when I try to do so I am getting this error:

{
  "error": {
    "code""InvalidAuthenticationToken",
    "message""Access token validation failure. Invalid audience.",
    "innerError": {
      "date""2020-06-30T11:09:37",
      "request-id""<GUID>"
    }
  }
}

 Retrieve logged in user Token using Virtual agentRetrieve logged in user Token using Virtual agent

 

Error while getting details in flowError while getting details in flow

 

Permissions in App registrationPermissions in App registration

 

Any help would be appreciated. 

I have the same question (0)
  • CU22081450-0 Profile Picture
    Most Valuable Professional on at

    Hi @Ramandeep_Singh ,

     

    Can you take some pictures inside your Http request method inside Power Automate, please? (edit mode to see the code)

    Can you confirm which variable do you are sending to Power automate like parameter?

  • Ramandeep_Singh Profile Picture
    13 on at

    Hi @renatoromao ,

     

    Thanks for the quick replay. Following are screenshot you asked for:

    VA.PNG

     

    AAD.PNG

     

    Automate.PNG

     

    I am using an trial instance for this.

  • Verified answer
    Ramandeep_Singh Profile Picture
    13 on at

    Hi all,

    I was able to resolve the issues and it might help others while facing the same issue.
    The issue was that I am using "https://graph.microsoft.com/v1.0/me" API and in virtual agent authentication "Scope" I was not using the correct URL.
    Following is the screenshot when using graph APIs:


    Auth Virtual agent.PNG

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

    Thanks and keep helping each other.

  • CU22081450-0 Profile Picture
    Most Valuable Professional on at

    Congrats @Ramandeep_Singh ! 🙂

     

    Keeping doing a lot of things with Power Virtual Agents!

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 > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 255 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 205 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 101 Moderator

Last 30 days Overall leaderboard