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 Pages / How do you retrieve th...
Power Pages
Answered

How do you retrieve the user details when using Azure AD authentication?

(0) ShareShare
ReportReport
Posted on by 4

We're currently building a site via PowerPages on top of our Dynamics 365 instance. I'm using the web API to fetch data, and using the default Azure AD/Entra ID authentication to give our users access. All of the PowerPages documentation says to use Liquid tags to access the user object (i.e., {{ user.id }}, etc), but it doesn't look like the user object is actually getting created when you use the Azure authentication. We could use the local auth, but everything says that will be deprecated soon.  Anyone know how to return the current user in PowerPages if you're using the default authentication? 

Categories:
I have the same question (0)
  • Verified answer
    Fubar Profile Picture
    8,487 Super User 2026 Season 1 on at

    The the Liquid user object exists for all authentication methods.

    However, it only exists for a user that is logged in to the Portal (i.e. if the user is logged into the authentication provider but has not signed into the portal then the 'user' object will not exist).

  • shauggy Profile Picture
    4 on at

    Thanks, Fubar - it looks like our problem was we had the Site Setting for Profile/Enabled set to "false". So the issue was as you mentioned - the user would be logged into the authentication provider, but not actually logged into the portal (so the 'user' object wasn't getting created) 

     

    I toggled that setting back to "true" and it works as expected now. Thanks for pointing us in the right direction! 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
DP_Prabh Profile Picture

DP_Prabh 51

#2
rezarizvii Profile Picture

rezarizvii 35

#3
oliver.rodrigues Profile Picture

oliver.rodrigues 33 Most Valuable Professional

Last 30 days Overall leaderboard