web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Power portals - Enforc...
Power Pages
Unanswered

Power portals - Enforce password policy

(0) ShareShare
ReportReport
Posted on by

Hi All,

 

I am new to power portals. I can see the  site settings available to configure password policy rules for the registration process. I have tried that and it works fine with the registration form.  Is there a way to use the same set of rules in any other forms?

 

How to consume the enforce password policy outside registration page. Please share your thoughts.

 

Is it possible to read the value configured for a specific site setting from the portal web page?

 

Thanks,

KJ

Categories:
I have the same question (0)
  • justinburch Profile Picture
    Microsoft Employee on at

    Hi @Jeyaram19,

    You can access site settings in your Web Templates or Copy section of a Web Page (anywhere Liquid is honored) via the same methods shown in this documentation: https://docs.microsoft.com/en-us/powerapps/maker/portals/liquid/liquid-objects#settings

    So, as an example, you would use 

     

    {% assign policyUppercase = settings['Authentication/UserManager/PasswordValidator/RequireUppercase'] %}
    {% if policyUppercase %}
    <!-- do something in liquid/pre-load... -->
    {% endif %}
    
    {% comment %}
    Or, store the value and access in JS
    {% endcomment %}
    
    <input type="hidden" id="policyUppercase" value="{{ settings['Authentication/UserManager/PasswordValidator/RequireUppercase'] | boolean | default: false }}">
    <script>
     $(document).ready(function () {
     window.policies = window.policies | {};
     // store the value for uppercase policy in global variable..
     window.policies.uppercase = $("#policyUppercase").val();
     });
    </script>

     

    As far as implementing the policies from the settings, think of the settings as a dictionary and you can choose to use the values as you need to.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 78 Super User 2025 Season 2

#2
Jerry-IN Profile Picture

Jerry-IN 75

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard