Hi @Anonymous,
Local accounts won't necessarily be removed "soon," but last I heard it definitely will be at some point.
One way that I've had teams workaround this is through a rather complicated custom effort:
- Replace the Sign In button with a custom dialog to accept the email address
- User inputs the email address
- Logic Runs against whitelist
- If whitelisted, continue to login page (typically Azure AD or B2C), else show error
- In the event the user finds the login page anyway, e.g., through checking the site source...
- Ensure Contacts require a Web Role - i.e., do not grant permissions to the 'Authenticated' Web Role
- Optional: Have a plugin/Power Automate/etc. validate against the same white list and grant an expected Web Role
Note that this can cause some delay in the user seeing data. We've also used this same method if we needed to split providers and didn't just want to show users their own options as most are open registration - e.g., external (Azure B2C) and internal (Azure AD).