Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - General Discussions
Unanswered

Only allow user with invitation code to register

(0) ShareShare
ReportReport
Posted on by 8

Hello,

Seeking guidance on how to only allow users with invitation code to register in our Power Page as we are trying to limit the number of users who can get access.

Thank you!

Categories:
  • Fubar Profile Picture
    7,960 Super User 2025 Season 1 on at
    Re: Only allow user with invitation code to register

    You can try setting the following Site Settings (from the Portal Managment app):

    • Authentication/Registration/Enabled to true
    • Authentication/Registration/OpenRegistrationEnabled to false
    • Authentication/Registration/InvitationEnabled to true

     

     

  • Lucas001 Profile Picture
    2,182 Super User 2025 Season 1 on at
    Re: Only allow user with invitation code to register

    Hi @DaisyPJ,

     

    so I believe there are some changes you still have to do.

    I tried it on my tenant and it seems to be working.

    You still need the sign in but want to delete the register tab as far as I understand.

     

    First create the content snippet as explained here, as you will have to modify the SignIn Page with JavaScript.

    https://ulrikke.akerbak.com/2020/02/16/customize-the-sign-in-and-registration-page-in-power-app-portals/ 

     

    You later on need to replace the content with:

     

    <script>
    $("#content-container").addClass("signinpage");
    let register = $('#content > ul > li:nth-child(2)')
    register.remove()
    </script>

     

    if the selector is different on your page. Use the google chrome selector and paste it inside $('insert here')

     

    After that your page should look like that:

    Lucas001_0-1685026083533.png

    -----------------------------------------------------------------------------------

    Hope that helps. If it is the solution please give kudos and mark it as such.

  • DaisyPJ Profile Picture
    8 on at
    Re: Only allow user with invitation code to register

    Thank you for the response @Lucas001.

    I follow what you have suggested but I/user can still register without the invitation code.

  • Lucas001 Profile Picture
    2,182 Super User 2025 Season 1 on at
    Re: Only allow user with invitation code to register

    Hello,

     

    there are different solutions to your problem.

    The easiest and fastest way would be to disable the Content Snippets which belong to the "Register"-tab and the external authentification-tab.

     

    For that go to the portal management under content snippets and search for the Account/Register/... Snippets and deactivate those which you don't want to show up.

     

    The more difficult way would be to adjust the Account/Registert/PageCopy with jQuery and CSS to .hide() all sections you don't need.

     

    Hope that helps.

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 69 Super User 2025 Season 1

#2
oliver.rodrigues Profile Picture

oliver.rodrigues 49 Most Valuable Professional

#3
Jon Unzueta Profile Picture

Jon Unzueta 43