How to apply encryption contexts to encryption field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2017 01:44 PM
Can't seem to figure out how to link and encrypted text field with an encryption context.
So far I have:
- Created the context
- Created a role associated with that context
- Associated that role with my dev account
- Created an encrypted field
I can't seem to view that field. Did I miss something here?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2017 09:36 PM
Hi William,
It looks like you followed the basic steps for Encryption context setup at the ServiceNow docs site described here.
If you haven't already, please kindly try logging out of your instance and logging back in again to that instance as the user that has the role associated with that context to use the encryption context that you created.
Just in case you enabled multiple encryption contexts were enabled for your user account, please be sure to add an encryption context selector to your banner frame. If this is the case, and the encryption context selector (which displays next to the user menu) is enabled, then you should be able to choose the encryption context that you want to use for that encrypted field.
Once the encrypted field created is added to a form it should be visible on that form providing the user account that you are logged in with the role which is associated with the encryption context used to encrypt that field.
I hope this additional information is helpful.
Kind regards
Mike

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2017 11:30 AM
Did you get this resolved? Mikes comments above are exactly what I would do.
- Log out, log back in
- Check that proper context is selected
The only thing I would add would be try to run some ready/write operations in a fix script to the encrypted field. The fix script must be run in the foreground, as encryption won't work in the background (e.g. async BRs, import sets, etc...)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2018 02:50 PM
I hit this same problem and discovered that I had set everything up properly but when I impersonated users with or without access, the system showed results according to my profile (the logged in user) only. To test the encrypted field access, I had to set up mock users with encryption context roles or not and log in as those users directly to test access.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2020 08:17 AM
Thank you this really helps.