Hi,
how can I achieve a unique username for portal users ? Same as for the ootb site settings for email (Authentication/UserManager/UserValidator/RequireUniqueEmail)
Thanks!
Hi @newmay
You can try creating a duplicate detection rule for the "Contact" table.
official docs: https://docs.microsoft.com/en-us/power-platform/admin/set-up-duplicate-detection-rules-keep-data-cle...
Note: Remember to turn on the "Enable Duplicate detection"
Hope it helps.
------------
If you like this post, give it a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.
@ragavanrajan but does this work for the portal? At best I want that a form throwns an error if the username is already taken (but within the power apps portal)
I believe duplicated detection rules are ignored in the Portal @ragavanrajan, I could be wrong, might be worth trying it out
@newmay a few things here:
Power Apps Portals Super User
Hi @newmay & @OliverRodrigues
Have tested the duplicate rules. Looks like it is working. Screenshot below for reference
@newmay Please note as @OliverRodrigues mentioned. Local Authentication is not supported. You may need to migrate it to Azure AD or Azure AD B2C.
Cheers
Hope it helps.
------------
If you like this post, give it a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.
Hey @ragavanrajan I have a custom reg form with the default username field unfortunately the duplication rule does not work here and default username field cannot be used for an alternate key. So we would need to write a plugin I guess.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
User | Count |
---|---|
7 | |
3 | |
2 | |
1 | |
1 |