Set up Password restrictions for User Registrations in Dynamics 365 portal/ Powerapps portals

Follow my blog for more interesting topics on Dynamics 365, Portals and Power Platform. For training and consulting, write to us at info@xrmforyou.com
I have been working on Dynamics 365 portals (previously ADX portals) for some time now and recently I got a question on how to enforce Password restrictions during user self registration or redeeming invitation.
Well, although this feature is very easy to set-up but somehow difficult to find in the documentation. Hence thought of penning this blog
Suppose your requirement is to enforce the below password restrictions for your portal users.

  • Password must be more than 8 characters long
  • Should contain one lowercase and one uppercase at-least
  • should be alphanumeric

Thinking now that I would start writing lots of lines of code. Well its exactly the reverse.
Just got to CRM –> Portals –> Site Settings and then create few site settings records as shown in the below screenshots. If the site-settings are already present, do not re-create. Instead adjust their values accordingly.
For Requirement – Password must be more than 8 characters long create a site setting with the below information.
image
For Requirement – Should contain at-least one uppercase and one lower case letters.
image
image
For Requirement – Should be alphanumeric
image
All set and done. Just refresh the ADX portal and now when the user tries to register, gets an appropriate depending on the entered password.
image
image
Wonderful isn’t it?
Couple of settings which you might find useful
Authentication/UserManager/PasswordValidator/RequireDigit – Whether the password requires a numeric digit (‘0’ – ‘9’)
Authentication/UserManager/PasswordValidator/RequireNonLetterOrDigit – Whether the password requires a non-letter or digit character
Hope this helps!
Debajit Dutta
(Dynamics MVP)
For consulting/ training please contact at info@xrmforyou.com
Try our products at – http://www.xrmforyou.com/products.html


Discover more from Debajit's Power Apps & Dynamics 365 Blog

Subscribe to get the latest posts sent to your email.

Discover more from Debajit's Power Apps & Dynamics 365 Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading