How to apply encryption contexts to encryption field

wgosse
Mega Contributor

Can't seem to figure out how to link and encrypted text field with an encryption context.

So far I have:

  1. Created the context
  2. Created a role associated with that context
  3. Associated that role with my dev account
  4. Created an encrypted field

I can't seem to view that field.   Did I miss something here?

4 REPLIES 4

mikeadler
ServiceNow Employee
ServiceNow Employee

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


wgosse



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


Community Alums
Not applicable

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.


Thank you this really helps.