Can we encrypt fields depending on roles...........?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-26-2019 07:44 AM
I got a requirement that some of the fields should be encrypted depending on roles?
Is there any way to do that? Need help can someone help me with this please

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-26-2019 07:54 AM
Create an encryption context that uses an encryption key. Only users who have a role associated with the encryption context can view the data encrypted with that encryption context.
Before you begin
About this task

Procedure
- Navigate to System Security > Field Encryption > Encryption Contexts.
- Click New.
- Complete the form.
Field Description Name Name of the encryption context. Encryption key Key used to encrypt the data. Leave this field blank to randomly generate a key. Based on the desired type of encryption, enter the exact number of characters: - 16 characters for AES 128-bit
- 32 characters for AES 256-bit
Warning:You cannot retrieve this key from the instance. If you need access to the key, save it elsewhere before clicking Submit.Type Type of encryption used to encrypt your data: - AES 128-bit: Advanced Encryption Standard
- AES 256-bit: Advanced Encryption Standard using 256-bit encryption
- Click Submit.
The newly-created encryption key is encrypted with a key the system maintains. This key is not stored in the database. This practice prevents other users from copying the key and using it to decrypt data.
- Navigate to System Security > Roles and open the role record to associate with the encryption context, or create a new role.
- Right-click the form header and select Configure > Form Layout to configure the Roles form to add the Encryption context field.
- Select the encryption context to associate with the role (there can be only one encryption context per role).
- Click Update.
You must log out of the instance and log in again to use the encryption context.
Hope this helps!
-Dean
If my replies have helped you at all, I’d really appreciate it if you click the Helpful button and if my reply is the answer you were looking for, it would be awesome if you could click the Accepted Solution button!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-26-2019 02:02 PM
Hi Dean,
Navigate to System Security > Field Encryption > Encryption Contexts.
I can't find field Encryption under System Security. Can you please send me the screenshot....?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-26-2019 02:57 PM
You need elevate your privileges to Security Admin to view Encryption context.
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-27-2019 06:08 AM
I elevated security admin roles, but even though its not allowing me to activate Encryption support plugin.