Public Key Encrypted Field and Scheduled Agent

My development staff is having trouble getting a scheduled agent to read an an encrypted field encrpyted using Public Key Encryption.

The field contains a password that we would like encrypted. We have listed the server in the PublicEncryptionKeys field as well as the signer of the agent.

When the agent runs from the server, it will error out when trying to read the encrypted field.

Any help would be appreciated.

Subject: Public Key Encrypted Field and Scheduled Agent

I’ve found a solution to this problem and thought I post if for others.

To allow the agent to read the encrypted field, the agents runtime security level must be 2 (Allow Restricted operations)or higher. This setting can be found under the security tab in the agent properties page.