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 to load Azure AD U...
Power Pages
Answered

How to load Azure AD Users or Groups into the Contacts entity without having to wait for users to log in the first time to show up in Contacts?

(0) ShareShare
ReportReport
Posted on by 41

How do I load Azure AD Users or Groups into the Contacts entity without having to wait for users to log in the first time (via AAD authentication) to show up in Contacts?

 

Microsoft documentation says Contacts are not provisioned automatically, and they are added at "run-time" or when users log in for the first time via AAD authentication, but there has to be a way to push or load Azure AD users into the portal proactively as Contacts.

 

My end goal is to load Azure AD users into portal Contacts so that I can assign them web roles.

 

Thanks!

 

https://docs.microsoft.com/en-us/power-platform/admin/troubleshooting-user-needs-read-write-access-organization#user-is-missing-from-environment-despite-meeting-all-requirements

jakesh_0-1656606703400.png

 

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

    You would have to write something that created the Contact based on a user being added to AAD etc for that Contact also create an External Identities record (this is what links the Contact to the External Identity Provider) and populate it with the respective Azure AAD GUID of the user and the AAD url (or use the email address mapping setting on your setup in the Portal - but understand that depending on your scenario there may be risks with this mapping).

  • jakesh Profile Picture
    41 on at

    @Fubar thank you for your response. I tried creating a Contact record and manually added the external identity with AAD's object ID as username, but when I went to the portal and tried to log on with Azure AD an error came up saying there was an existing user with that object ID.

     

    However, the goal is to load all the AAD users at once into the Contacts entity without having to add them one by one.

  • oliver.rodrigues Profile Picture
    9,449 Most Valuable Professional on at

    This might be a duplicate of What is the best way to load a bulk of users in th... - Power Platform Community (microsoft.com)

    I am just adding here for reference 

  • Fubar Profile Picture
    8,487 Super User 2026 Season 1 on at

    @jakesh double check that you are just Signing in, and not Registering.  Only other thing I can think is there is a checkbox on the Contact - can't remember exactly what it is called off the top of my head something like Enabled for Portal OR Portal User.

  • Verified answer
    jakesh Profile Picture
    41 on at

    I found the way to pre-register contacts with an email, assign them to a web role, and upon the user signing in, the contact record will be automatically associated with the Azure AD external identity.

     

    Create the following site setting, which is not preloaded to the portal by default:

     

    Authentication/OpenIdConnect/AzureAD/AllowContactMappingWithEmail

     

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

#2
oliver.rodrigues Profile Picture

oliver.rodrigues 35 Most Valuable Professional

Last 30 days Overall leaderboard