Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Suggested answer

How can I restrict specific field values to specific users

Posted on by 15

Hi,

I am looking to have one field where users in different teams can access different values.

In our case this is a field say x that has the values a,b,c,d,e. I want Team 1 to be able to access the values a,b,c. But I want team 2 to access the values d and e. To my knowledge, this can only be done using custom scripts. I was wondering if there is any way to segment the values specifically by teams. 

Otherwise, our only option is to have multiple fields each for individual teams. and this then makes it difficult for our teams to manage the schema fields when building reports in power BI so preferably we want to use this one field for multiple teams as we would have lots of different fields to manage.

Thanks

  • Suggested answer
    Ran Zhang Profile Picture
    Ran Zhang on at
    RE: How can I restrict specific field values to specific users

    Hi Joshua,

    Not sure if we can use below API to do so after checking team's access:

    formContext.getControl(arg).removeOption(value);

    formContext.getControl(arg).addOption(value);

    Please refer to below articles for more information.

    neilparkhurst.com/.../

    www.crmcrate.com/.../

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

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

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 228,520 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans