As a solution I setup a Azure function to take the token, decode it and used regex to retrieve the value I needed.
Hello @Anonymous .
I am struggling with exactly the same case as you, did you find a solution to this issue?
I tried to suggestion to use graph api and call https://graph.microsoft.com/v1.0/me with the token but I get error:
Hi @Anonymous ,
Did I answer your question?
If yes, please give kudos. And if this solves your problem, please accept this reply as the solution.
-----
Thanks!
Renato Romão
https://www.linkedin.com/in/renatoromao/
@Anonymous ,
This one: https://docs.microsoft.com/en-us/graph/api/user-get?view=graph-rest-1.0&tabs=http
---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.
Thanks!
Renato Romão
https://www.linkedin.com/in/renatoromao/
What the specific graph api we should use to fetch the user details from token?
Hi @Anonymous ,
The unique way to do it is by calling the Power Automate passing the AuthToken and inside your Power Automate, call back-end APIs to get more details related to the user.
I recommend that call the MS Graph to get more details, it is an easy and great way.
---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.
Thanks!
Renato Romão
https://www.linkedin.com/in/renatoromao/