Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Create User Registration in Power Apps Portal

Posted on by 295

Dear All,

I am relatively new to power portals and here I want to make a registration form in the portal. The registration form is simple with very minimal fields such as First Name, Last Name, Email, and User type.

However, challenge is based on the selected user type I want to set the roles of the user and display him forms accordingly in the portal. Such as if the user is an Teacher, He/She will be able to see assigned courses page. Similarly, if user is Student then they will be able to see time table form where as if user is registered as an admin they will be able to see all pages. 

How can I assign roles to a user while he registers by selecting the user type? and control the security restrictions.

TIA

  • Suggested answer
    CRMJetty Profile Picture
    CRMJetty 3,508 on at
    RE: Create User Registration in Power Apps Portal

    Hello Faran Saleem,

    You can refer this article,

    https://www.youtube.com/watch?v=fOnCLY8CJ-U

    and also you can refer this article for install powerApps portal.

    https://www.crmjetty.com/blog/how-to-dynamics365-powerapps-portal/

    I hope it helps,

    Thanks.

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365

  • Suggested answer
    RE: Create User Registration in Power Apps Portal

    Hello Faran Saleem 

    As mentioned already you could use workflow, or powerautomate flows or a plugin for when a contact is created.
    Once you have this sorted, all the rest of the design can be controlled by weblink sets set according to the webroles.

    Also, if you want to redirect the users to same page but show different content, you will need to write JS or Liquid code on the page.

    Cheers!

    Pranjali

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Create User Registration in Power Apps Portal

    Hello Faran Saleem,

    For assigning roles while he choose user type, keep a drop down in the user type(your roles) and add a work flow based on the user type to assign the web role

    pastedimage1647492746789v1.png

    This will be your step one in the work flow ie. To check your user type and assign the web role accordingly

    pastedimage1647492836678v2.png

    Inside based on your conditions populated the web role

    You need to Create web roles(in your case Teacher,Student).

    To control security go to the Power apps and select the web page

    pastedimage1647492993746v3.png

    For teacher give the web role as teacher.

    If the answer is helpful please mark it as suggested answer

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans