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

Announcements

News and Announcements icon
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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
11manish Profile Picture

11manish 46

#2
Valantis Profile Picture

Valantis 24

#2
omkarsupreme Profile Picture

omkarsupreme 24

Last 30 days Overall leaderboard