Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Field level security

Posted on by Microsoft Employee

Hi all,

Is it possible using Field Level Security to deny Read access to everyone in the same BU except the owner of the record? What I'm trying to achieve is to hide Phone Number field from everyone else but the owner of the record.

Thanks

*This post is locked for comments

  • Verified answer
    Rajkumar Rajaraman Profile Picture
    Rajkumar Rajaraman 18,108 on at
    RE: Field level security

    Please mark answer as verified if you found as helpful

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Field level security

    Thank you Rajkumar

  • Suggested answer
    Rajkumar Rajaraman Profile Picture
    Rajkumar Rajaraman 18,108 on at
    RE: Field level security

    Bobby,

    Refer this thread:

    community.dynamics.com/.../147211

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Field level security

    Thank you Arif. So are you saying that is not possible to achieve what I'm looking for using Field Level Security? Or is just better to use JS?

  • Verified answer
    arif imteyaz Profile Picture
    arif imteyaz 375 on at
    RE: Field level security

    var context = Xrm.Page.context;

    var UserID = context.getUserId();

    var lookupOwner = Xrm.Page.getAttribute("ownerid").getValue()[0].id;

    if (UserID ==lookupOwner )

    Xrm.Page.getControl('fieldname').setDisabled(false);

  • arif imteyaz Profile Picture
    arif imteyaz 375 on at
    RE: Field level security

    better to use JavaScript ..when user id is owner then show field true else false

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans