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!
You can try setting the following Site Settings (from the Portal Managment app):
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.
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:
-----------------------------------------------------------------------------------
Hope that helps. If it is the solution please give kudos and mark it as such.
Thank you for the response @Lucas001.
I follow what you have suggested but I/user can still register without the invitation code.
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.
Fubar
69
Super User 2025 Season 1
oliver.rodrigues
49
Most Valuable Professional
Jon Unzueta
43