Setting the Context User and Permissions

Receiving emails into Salesforce via an Apex Email Service requires a Context User with Salesforce and Email to Case Premium licenses. This article describes how to set the Context User with the permissions needed for your Context User's Profile to use Email to Case Premium functionality, using a Salesforce Integration User license.