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 / “User Not Found in F&O...
Power Pages
Unanswered

“User Not Found in F&O” Error with Power Pages Virtual Entities and Service Principal Configuration

(0) ShareShare
ReportReport
Posted on by 2

We have a Power Pages Portal that surfaces data from Microsoft Dynamics 365 Finance & Operations via virtual entities in Dataverse. The portal is prompting the following error:

"User portal:{00000000-0000-0000-0000-000000000000} was not found in Finance and Operations. Please ensure this user exists."

Despite configuring a service principal (Client ID and Secret) in the F&O virtual data source record, the portal still seems to pass the portal user's identity to F&O, causing the “User not found” error. I suspect that something is overriding the service principal authentication and reverting to a per-user delegation mode.

Question:

  1. How do we fully configure Dataverse to use a single service principal for all calls to F&O virtual entities (so that F&O doesn't try to match each portal user)?
  2. Could you provide direct references or official Microsoft documentation that explains how to disable per-user impersonation and ensure the service principal authentication is enforced?

Goal:

  • Stop the portal from sending the portal user's identity to F&O.
  • Rely solely on the service principal account we’ve configured, so the “user not found” error no longer occurs.
  • Confirm the specific steps or environment variables in Dataverse and F&O that must be set, plus any relevant hidden fields or flags, to ensure service principal authentication is used.
Categories:
  • SaiRT14 Profile Picture
    1,992 Super User 2025 Season 1 on at
     
    Here are the high-level steps:
    • Configure the F&O virtual entity data source in Dataverse to use Service Principal Authentication.
    • Disable per-user impersonation by setting EnablePerUserImpersonation to False in the portal.
    • Ensure the service principal has the correct permissions in both Dataverse and F&O.
    • Verify that no user mappings exist between portal users and F&O users in F&O’s system administration.
    pls let me know if you need more details. thanks
  • jagsnp009 Profile Picture
    2 on at
    Thanks for reply SaiRT14

    Here is my understanding
     
    1. Configure the F&O virtual entity data source in Dataverse to use Service Principal Authentication - I suppose you are pointing to Virtual Entity Data source record i.e. Finance and Operations record with proper details like ID, Secret, Tenant Id all have proper details
     
    2. Disable per-user impersonation by setting EnablePerUserImpersonation to False in the portal. - This is I didn't get, since there is no official doc which says about this, also did you mean to add it in Site Settings area ? 
     
    3. Ensure the service principal has the correct permissions in both Dataverse and F&O. - Already in place
     
    4. Verify that no user mappings exist between portal users and F&O users in F&O’s system administration - Did you mean portal user cannot be in FO user? I do want this setup to exist and still use FO data using service principle.

    Please let me know if you achieved explained scenario.

    Thanks
  • CU25092337-0 Profile Picture
    2 on at
    Hello guys! 
    I am currently facing the same issue when trying to data from Microsoft Dynamics 365 Finance & Operations via virtual entities in Dataverse to my list in power pages 
    is there a configuration that I am missing here ?
    @SaiRT14 @jagsnp009 Please let me know if you achieved a solution.
  • JacoSchutte Profile Picture
    2 on at
    Hi there team,
     
    We're facing a similar problem trying to query data for users from D365 using virtual entities. Have you managed to resolve the problem on your end, we're about to raise a support ticket with Microsoft to get some support but hoping it is a simple config issue on our end?
     
    Thanks,
    Jaco

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Pages

#1
M Bilal Khan Profile Picture

M Bilal Khan 139

#2
Mohsin Ali Profile Picture

Mohsin Ali 41

#3
11manish Profile Picture

11manish 21 Super User 2026 Season 2

Last 30 days Overall leaderboard