Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

How to restrict access to a Dynamics 365 portal?

Posted on by Microsoft Employee

I have two licensed portal for a CRM instance. I already had one portal (Community Portal) configured previously where users i.e the contacts in CRM have access to this portal. I recently configured another portal (Customer Self Service Portal) and i want to restrict those users to access this new portal. By restricting means I don't want those users to sign into this portal.

I know the use of Webpage access permission but that is done a webpage level. Is there something which I can implement on a website level?

*This post is locked for comments

  • Suggested answer
    Arpit Shrivastava Profile Picture
    Arpit Shrivastava 7,518 User Group Leader on at
    RE: How to restrict access to a Dynamics 365 portal?

    Hi,

    I don't think there is any OOB way to achieve this.

    Just a thought:

    Create two web roles let say: 'Community Portal Role' and 'Customer Portal Role'.

    If Portal User is being created/registered through 'Community Portal' then assign 'Community Portal Role' to the user and if created/registered through 'Customer Portal' then assign 'Customer Portal Role' to the user.

    If a user has both the role then he/she can access both the portal otherwise he/she must have at least one role in order to access at least one portal.

    Now on Sign In page - Replace the OOB 'Sign In' Button with your Custom 'Sign In' button.

    On Click of custom 'Sign In' button - Get the username from username field and Retrieve the entered username's contact (using OData - http://arpitmscrmhunt.blogspot.com/2016/12/adxstudio-portal-how-to-use-odata.html) and check its web role in CRM - If an assigned role is 'Community Portal Role' and user is trying to sign in on 'Customer Portal' then through an error ('You are not authorized to access this portal. Please contact your Administrator'). And If an assigned role is 'Customer Portal Role' and user is trying to 'sign in' on 'Community Portal' then also through an error ('You are not authorized to access this portal. Please contact your Administrator').

    A user must have both the role in order to access Community and Customer Portal both.

    Hope you understood.

    To customize CRM Portal Sign In Page. Take a reference to my below articles:

    http://arpitmscrmhunt.blogspot.com/2017/05/edit-stylelayout-of-login-page-in-crm.html

    http://arpitmscrmhunt.blogspot.in/2017/12/customise-registration-page-in-crm.html

    If found useful, please mark the answer as verified.


    Cheers
    Arpit
    https://arpitmscrmhunt.blogspot.com

     

  • Muhammad Ainuddin Profile Picture
    Muhammad Ainuddin 106 on at
    RE: How to restrict access to a Dynamics 365 portal?

    Hi,

    So you want the users cannot login to the new portal?

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans