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 / Restrict the portal fr...
Power Pages
Unanswered

Restrict the portal from creating new contacts

(0) ShareShare
ReportReport
Posted on by 160

Hi all,

 

All our portal users are on AzureAD and we only want users who already have a record in the contact table to be able to access the portal. We want AzureAd to be the only allowed method of authentication and so it is the only one enabled and set to default, this works well where the user exists in the contact table (it is matching on email and creating the external identity relationship from this). However, if the user is not found (no match on email), then the portal (SYSTEM user) creates a new contact. Is there anyway to block the portal from creating this new contact record and instead telling the user this service is not accessible - we are not too bothered if the error message is not pretty, we just don't want contacts created.

 

Thanks in advance.

Categories:
I have the same question (0)
  • Atmaram90 Profile Picture
    126 on at

    you can disable the registration of new user that way contact records would not be created. To disable login update this site settings as false.

    Authentication/Registration/Enabled

  • Peragin Profile Picture
    160 on at

    If I do that it won't allow me to authenticate, I assume it is preventing the creation of the external identity record.

    KH_2437_0-1685090091255.png

     

  • Atmaram90 Profile Picture
    126 on at

    Can you check what are the values of these settings

    Authentication/Registration/ExternalLoginEnabled

    Authentication/Registration/AzureADLoginEnabled

  • Peragin Profile Picture
    160 on at

    Thanks for the response but no joy with that. I changed to settings as below, syncd the site and purged the cache but still get the Registration has been disabled screen. Switching Authentication/Registration/Enabled back to true allows me to login again but if no contact record is matched on email, it will create a new record as per the original problem.

     

    KH_2437_0-1685353767075.png

     

  • edsonleo03 Profile Picture
    2 on at

    Hi @KH_2437,

    Were you able to solve this problem? I'm facing the same issues and I cannot find any answer. 

    Any advise would be helpful, thanks in advanced. 

  • AsaurdiffADTill Profile Picture
    125 on at

    Found myself in the same situation. I have Dual-Write setup on my tenant and do NOT want Power Pages to creating contacts that haven't been vetted in our D365 area first. When it creates a contact, it forces many other line items to be created that create bad data on our D365 side. 

    Does anyone have a solution to this? I am currently thinking of creating a 'check' process that will determine if the new contact should be deleted, but who know what that will do to future projects down the road. 

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
rezarizvii Profile Picture

rezarizvii 61

#2
Valantis Profile Picture

Valantis 46

#2
11manish Profile Picture

11manish 46

Last 30 days Overall leaderboard