web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Pages - General Discussions
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,232 Super User 2025 Season 2 on at
    Re: How do you retrieve the user details when using Azure AD authentication?

    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
    Re: How do you retrieve the user details when using Azure AD authentication?

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 46 Super User 2025 Season 2

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 43 Super User 2025 Season 2

#3
Jerry-IN Profile Picture

Jerry-IN 38

Last 30 days Overall leaderboard