Skip to main content

Notifications

Power Pages - General Discussions
Suggested answer

Issue in signing into portal through Azure AD.

Posted on by 2
Hi,
 
I developed a portal in Power pages which provides a platform to submit an enquiry form for the internal users in my organisation. I need to setup the authentication for this site using Azure AD. I have web roles for my own contact record that I created as administrator, authenticated and anonymous users. Also I registered my app in Azure portal. When I open the portal in preview mode and try to sign in through my Azure AD account, I get the following error page. Kindly let me know the settings I need to change to make the sign in work. And also how to make the power pages create a contact record automatically and assign them the web roles, when a new user sign in.
Categories:
  • Suggested answer
    Fubar Profile Picture
    Fubar 7,379 on at
    Issue in signing into portal through Azure AD.
    Note: if you are using the Authenticated and Anonymous User Web Roles by default they have a checkbox ticked on them that when checked means their Permissions will be automatically inherited by a logged in user or someone not logged in respectively (i.e. you do not need to directly assign them to users).
     
    For logging in and registering, it kind of depends on what you have turned on/off with the Authentication settings.
     
    If you have turned off Open Registration, then you will generally Create and then Send Invitations to existing Contact records (when the user redeems the invitation it will link their Azure AD to the Contact record).  The Create Invitation button is initially only available on the Portal Contact form (not the standard Contact form) on the Contact table. The Invitation has a subgrid where you can attach Web Roles.
     
    If you are only enabling Azure AD (and disabling all other identity providers including Local Login), what you can do is leave Open Registration turned On, and only your Azure AD users will be able to self register.  You can also create a Group in Azure to add a subset of users to, and then in the Application (for your Power Pages Site) in Azure restrict access to members of that group against the App (doing so, only that subset of users will be able to register).  If there are existing Contact records for your AD users there is also an additional setting on the Power Pages Identity Provider where you can turn on Email mapping when turned on if the AD Users email address matches an existing Contact records email it will link them and if no match creates a new Contact record.
     
    In the Power Pages designer you generally get some buttons etc to setup and configure, but behind the scenes it is just setting Site Settings 
    Site Settings

Helpful resources

Quick Links

Welcome to the Power Platform…

We are thrilled to unveil the newly-launched Power Platform Communities!…

Community Update Sept 16…

Power Platform Community Update…

Welcome to the new Power Platform Community!…

We are excited to announce our new Copilot Cookbook Gallery in the Community…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 140,749

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,355

Leaderboard

Featured topics