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 / Power Pages / Create Contact Record ...
Power Pages
Suggested Answer

Create Contact Record for Internal User beforehand

(0) ShareShare
ReportReport
Posted on by 27
Hi,
 
Here is what I have:
   - A PowerPage website with Azure AD as default identity provider
   - Almost all my pages are custom made and I am using API to access Dataverse rather than the forms/views already provided.
   - Boolean fields in the contact table which will allow different users to access different records/sections on the website. Below are examples of those fields:
      - IsSection1
      - IsSection2
      - IsSection3
 
 
What I am trying to achieve:
 - I need to create the records in the contact table before the users logs in with their Microsoft Account, before they even access the website for the first time.
 - I can then check which sections will be for which user.
 
The issue:
 - The record is created in the contact table only when the user logs in with his Microsoft account for the first time.
 
 
I've tried to create the contact record with the same email beforehand. The system then gives and error the the user already exists.
The same applies if I try to use roles, there should be a contact record to assign the roles to.
 
Any idea how to resolve this?
Categories:
I have the same question (0)
  • Suggested answer
    abm abm Profile Picture
    32,865 Most Valuable Professional on at
    Hi
     
    Did you created the external identity record for that contact
     
     
    Here username is the GUID. This you can obtain from AD > users
     
     
    Identity provider GUID is the Tenant Id. You can get this from Portal Azure > Microsoft Entra ID
     
    Thanks
  • Suggested answer
    Fubar Profile Picture
    8,350 Super User 2025 Season 2 on at
    You will either need to:
  • Amad233 Profile Picture
    27 on at
    Thank you Guys.
     
    @Fubar I am currently not using Invitations as I do not want the user to see that login screen.
     
    @abm abm   I did create the external user identity.
     
    I have managed to resolve the issue. It was the stamp field which needed a random GUID for it to work.

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 > Power Pages

#1
Fubar Profile Picture

Fubar 74 Super User 2025 Season 2

#2
Jerry-IN Profile Picture

Jerry-IN 55

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard