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 pre add contact...
Power Pages
Answered

How to pre add contact with roles so that the user needs to only log in

(1) ShareShare
ReportReport
Posted on by 50

Hi all,

I have added a contact in the contacts table and added all the webroles (multiple) to that contact. However, when the user tries to login with Azure AD credential, a screen with the following message shows up :

JacoMathew_0-1717616105587.png

 I only have AAD login for this site. Clicking the register button does nothing. 
The use case is : The client has given me a list of employee names and emails along with the webroles for each user. At present, I need the user to login, this will create a record in the "Contacts" table. Then I need to go to that contact and assign the roles. During the time user logs in and I take to update their webrole, the user is not able to access the site as intended for the role. So my thinking was to create the contact with the role, so that the user can simply log in and the web role kicks in to show the site pages. 
This would also be helpful when a new employee needs access to the site. I can add the contact and roles as part of on-boarding process so that the site according to the role is directly accessible. 

Thanks
Jaco

Categories:
  • oliver.rodrigues Profile Picture
    9,482 Most Valuable Professional on at

    Hello, you should look at the Invitation process within Power pages

  • JW-22072146-0 Profile Picture
    40 on at

    IMO I think the process you're going for is more complicated than it needs to be. 

     

    You should be including the web roles as part of the invitation when being sent to the contact. To do this you need to create a separate flow. Please see Brian Knight's tutorial on Power Pages. This should give you the overall process on how to get this done. 

     

    Furthermore you need to allow B2C or External account authentication. 

     

     

    Please mark this post as a solution if it helped fix your problem! 

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

    @JacoMathew do you need further help with this?

  • Verified answer
    JacoMathew Profile Picture
    50 on at

    I had to create my solution a bit different from what I had initially planned. I tried the invitation flow but that still required me to manually create contacts with their respective roles and send the invitation code to the contact using the flow. 

    So I created a power automate flow using the Brian Knight's tutorial on Power Pages  with quite some modifications as multiple roles had to be assigned to a contact. I created a process that will notify an admin when a new user logs in. The admin will then email a list of web roles which then gets linked to the contact and notifies the contact when it is successful. 
    This method allows me to monitor the users and the roles that are being assigned.  

    Thank you all for the suggestions. 

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
Mohsin Ali Profile Picture

Mohsin Ali 43

#2
sannavajjala87 Profile Picture

sannavajjala87 30 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 20 Super User 2026 Season 2

Last 30 days Overall leaderboard