Skip to main content

Notifications

Announcements

No record found.

Suggested answer

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

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..?

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the latest D365 Community Calls

Community Spotlight of the Month

Kudos to Waed Ayyad!

What's New in Dynamics 365 Project Operations - Wave 2 2023

In the Microsoft FastTrack team's newest TechTalk, we review all the new…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 289,840 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 226,954 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans