Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Sales forum / Can I restrict a users...
Sales forum
Suggested answer

Can I restrict a users access to certain products & pricing?

Posted on by 205

Is it possible to restrict a users access so that they can only see certain products in the catalogue, or to restrict their access to a certain pricelist so they cannot see that products pricing or add it to an Opportunity/Quote?

Can this be done with Teams / Business Units / Security Roles?

Thanks.

Categories:
  • Suggested answer
    Abdul Wahab Profile Picture
    Abdul Wahab 12,070 Moderator on at
    RE: Can I restrict a users access to certain products & pricing?

    Hi MichelleM & Dan365,

    To restrict users on the form. Use : 

    1. formContext.getControl(arg).addCustomFilter(filter, entityLogicalName). For more detais: https://learn.microsoft.com/en-us/power-apps/developer/model-driven-apps/clientapi/reference/controls/addcustomfilter

    2. formContext.getControl(arg).addCustomView(viewId, entityName, viewDisplayName, fetchXml, layoutXml, isDefault). For more details: https://learn.microsoft.com/en-us/power-apps/developer/model-driven-apps/clientapi/reference/controls/addcustomview

    For the Home screen use message Retrieve or RetrieveMultiple. For more details:

    1. https://learn.microsoft.com/en-us/power-apps/developer/data-platform/reference/entities/sdkmessage
    2.  https://community.dynamics.com/365/f/dynamics-365-general-forum/417570/is-it-possible-to-set-a-filter-at-the-model-driven-app-level-for-an-entity
  • Dan365 Profile Picture
    Dan365 35 on at
    RE: Can I restrict a users access to certain products & pricing?

    Hi MichelleM, I'm looking for the exact same thing. Did you have any luck in finding a way to control which users can access which products and which price lists?

  • MichelleM Profile Picture
    MichelleM 205 on at
    RE: Can I restrict a users access to certain products & pricing?

    Thanks for your reply Nya, unless I am misunderstanding, wouldn't these solutions stop them seeing the price on all products?

    We need them to see the price on some, but not others.

  • Suggested answer
    Nya Profile Picture
    Nya 29,054 on at
    RE: Can I restrict a users access to certain products & pricing?

    Hi,

    The Default Price List is one of the fields in Product entity, so if you'd like to hide it to certain users, you could consider to use field level security feature.

    Ref: Field-level security - Power Platform | Microsoft Docs


    And for the related price lists, please refer to the following post.

    (+) Tip – Manage access to Price Lists in Dynamics CRM - Dynamics 365 Sales Community


    To avoid adding the product to an Opportunity/Quote, you just need to remove the append / append to privileges for the security role of the user.

    pastedimage1635909095835v1.png

    pastedimage1635909164097v2.png

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,263 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,112 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans