Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 general forum

Show decrypted data in the original field for only one security role

(0) ShareShare
ReportReport
Posted on by 1,329

Hello Folks,

Here was the scenario:

We have one field A, which we were encrypting and storing in a different field  B in CE and we were masking the data in the original field(A) like XXXXXXX99A1. Now we want to decrypt the information from the encrypted one(B) and show the data in the text field(A) for only one security role(C) in forms and views.. For others, the data in the field A should be masked only.

What we tried: We tried decrypting and updating the Field A, but this is getting visible for all users with other security roles since this is getting updated in the database which is not valid.

As we were using C# class library to encrypt/decrypt the information, we also to want to have this logic in Plugin only. 

Had anyone confronted with this situation and suggest any solutions or alternatives..?

  • RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Show decrypted data in the original field for only one security role

    In your plugin check the security role of the user and then mask the field accordingly.

  • Suggested answer
    Guido Preite Profile Picture
    Guido Preite 54,073 Moderator on at
    RE: Show decrypted data in the original field for only one security role

    Field Level Security

    https://docs.microsoft.com/en-us/dynamics365/customer-engagement/admin/field-level-security

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans