Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

How to Redirect to specific page after azure AD B2C Sign In in CRM portal.

(0) ShareShare
ReportReport
Posted on by 120

Hi Team,

I have logged in through Azure AD B2c ,after sign in it showing home page. But We need once sign in it should redirect to specific page not home page. Please help here

  • Haritha222 Profile Picture
    Haritha222 120 on at
    RE: How to Redirect to specific page after azure AD B2C Sign In in CRM portal.

    If is is useful please make it as a verified

  • Suggested answer
    Haritha222 Profile Picture
    Haritha222 120 on at
    RE: How to Redirect to specific page after azure AD B2C Sign In in CRM portal.

    Hi Naresh,

    Yes i have the solution

    Ex:

    If you want to redirect to contact us page after azure AD B2c sign in follow below steps

    1.Create a new we template and page template

    2.Web template use below code

    <div id="mainContent" class = "wrapper-body" role="main">

       {% include 'Page Copy' %}

       {% if user %}

    <script>

    window.location.href=‘~/Contact Us’;

    </script>

    {% else %}

    <script>

    window.location.href=‘~/’;

    </script>

    {% end if %}

    </div>

    3.Create a page template using above web template

    4.Now Whatever the page it is showing after azure ad b2c sign in, for that page add this page template(Ex: Now homepage is landing page, but we need to change it as a contact us page)

    4. So go to homepage and add above created page template.

    5.Now check automatically whenever sign in it will redirect to contact us page.

  • Naresh123 Profile Picture
    Naresh123 10 on at
    RE: How to Redirect to specific page after azure AD B2C Sign In in CRM portal.

    I have the same issue and would like to implement. Do you have anything working?

    please let me know

    Thank you

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,468 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,289 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans