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 / Only allow user with i...
Power Pages
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:
I have the same question (0)
  • Lucas001 Profile Picture
    2,429 Super User 2025 Season 2 on at

    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.

  • DaisyPJ Profile Picture
    8 on at

    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,429 Super User 2025 Season 2 on at

    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.

  • Fubar Profile Picture
    8,346 Super User 2025 Season 2 on at

    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

     

     

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 70 Super User 2025 Season 2

#2
Jerry-IN Profile Picture

Jerry-IN 55

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard