I am attempting to allow both internal and external users access to a Power Pages site. I understand there are two ways to go about this:
- Enable 'Open registration', which allows anybody with the URL to access the site; or
- Manually add users to the Contact table, which is then mapped upon signing in with the chosen identity provider.
The first option does work, with a contact being created when users sign in with their Microsoft account. But this is not suitable for this site, as it should not be publically available.
I have tried the second option, by adding rows to the Contact table within Power Pages and using the New Contact form within Portal Management, but it just results in the user being kicked back to the login page upon signing in. No error message is displayed.
When adding users to the Contact table, I have ensured that all required fields are completed. I've also added the necessary entry to the External Identity table.
The Microsoft identity provider is enabled, which is configured with the appropriate Client ID / Client Secret from the sites Azure App Registration. Additional settings are at their defaults, except for 'Registration enabled' and 'Contact mapping with email', which are both enabled.
Within Portal Management, 'Authentication/Registration/Enabled' and 'Authentication/Registration/ExternalLoginEnabled' are both True.
Within Azure, in the Authentication section of the app registration, 'Supported account types' is set to 'Accounts in any organizational directory'.
I have also tried this on a default Power Pages site and the issue is present there as well.
Is there some other way of manually adding users to a site? Or have I just missed a step when adding users to the Contact table?