web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to add condition in Field Level Security in Dynamics 365 (Onpremise)

(0) ShareShare
ReportReport
Posted on by

Hi All,

I have a scenario like Contact entity have few sensitive data which should not be visible to different BU users, e.g:- If X user create contact which has sensitive info on few fields and he's belongs to AA business unit, now Y user open the same contact record and he's belongs to BB business unit, the sensitive info. fields should not be visible to Y user as he's from different business unit. Fields should be masked like *******

In OOB FLS I tried to restrict but can't achieve. Also I had tried in JS by comparing Owenr's BU and Logged on user's BU to hide/show the sensitive data but still this would be visible in Advanced Find and other places.

Please help how to achieve this using plugin/custom workflow.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Alex Fun Wei Jie Profile Picture
    33,628 on at

    Hi,

    In your scenario , you might need to build a plugin to achieve that. You can take a look into a feature called shared secured field.

    First , What is Shared secured field

    [View:https://myencounterwithcrm.wordpress.com/2014/12/03/crmshared-secured-field/:750:50]

    How do we share the secured field through plugin or custom workflow

    [View:https://community.dynamics.com/crm/b/zhongchenzhoustipstricksandportaldevelopment/archive/2012/06/27/dynamics-crm-2011-share-secured-fields:750:50]

    [View:https://community.dynamics.com/crm/b/zhongchenzhoustipstricksandportaldevelopment/archive/2012/06/27/dynamics-crm-2011-share-secured-fields:750:50]

    You also can join this group and follow the post below on how to manipulate the shared secured field through plugin code, the scneario is different,but there are some steps you can follow.

    https://www.facebook.com/groups/108321812579187/permalink/1292577790820244/

  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi Sathesh,

    You could still use the OOB FLS but you need to manage the users manually i.e. if you create the security profile, you need to add the users manually.

    Or you can create a team and then add the users in that team.

  • ashlega Profile Picture
    34,477 on at

    Another option might be to move those fields to a new entity and to configure the security roles so that users can only see sensitive information in their business units (Then have a lookup from the contact to that entity.. and, maybe, add that entity's quick view form to the contact form)

  • Community Member Profile Picture
    on at

    Thanks Wei, this Blog helps, via custom workflow I able to control sharing privileges of Read, Update based on my business scenario. Thanks

  • Community Member Profile Picture
    on at

    No I can't achieve this by OOB.

  • Community Member Profile Picture
    on at

    Yes I suggested the same but my client didn't like this as they have similar scenario in another custom entity which has only 2 sensitive fields, so creating entity for 2 fields is not fair.

  • Alex Fun Wei Jie Profile Picture
    33,628 on at

    Hi

    glad this help. Remember to close the thread if this solved your problem

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans