{Dynamics 365 Portals} Set Password restrictions for User Registrations in Dynamics 365 portal

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.



For Requirement – Should contain at-least one uppercase and one lower case letters.





For Requirement – Should be alphanumeric



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.





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