Configure user permissions and Connected App
Configure user permissions
You can use Salesforce permission management to assign data and feature access for employees who use WeChat customer service sessions. The package includes a default identity model that is based on Permission Set Groups. It also provides Permission Sets with the appropriate granularity for different functional modules. You can assign a Permission Set Group directly to users or combine the delivered Permission Sets to create custom roles that meet your needs. Additionally, you must manually create a Permission Set to grant users access to the CXG Connected App.
For more information about Permission Set Groups, see Permission Set Groups.
This topic describes how to configure permissions for customer service sessions.
Prerequisites
The package is installed in your Salesforce organization.
Go to Setup > Permission Set Groups and verify that the following two Permission Set Groups have been added to your organization:
CXG Admin
CXG WeChat Agent
Note: The License setting for all Permission Sets in these groups is Salesforce. Users with non-Salesforce licenses, such as Chatter External or Service Cloud, cannot be assigned these Permission Sets.
Assign CXG Admin permissions
Assign CXG WeChat Agent permissions
Grant users Connected App permissions
Configure Connected App
A Connected App is a framework that allows external applications to integrate with the Salesforce Platform using API calls and standard protocols. For more information, see Connected Apps. We use a Connected App to enable customer service messaging and manage related data objects from CXG. Before you proceed, you must configure OAuth authorization, assign an API integration user, and set up the required Permission Sets for the CXG Connected App.
This topic describes how to configure the Connected App.
Prerequisites
After the package is installed, the Connected App is automatically added to the Salesforce Platform.
An Integration User is created.
All permission-related configurations are complete.
Procedure
Log on to the Salesforce Platform. Go to Setup and use the Quick Find box to search for App Manager.
Find CXG_CANVAS and click Manage in the action column.
Click Edit Policies. In the OAuth Policies section, set Permitted Users to Admin approved users are pre-authorized.
Click Client Credentials Flow > Run As, and then find and select CXG Automated.
Click Save.
Selecting Admin approved users are pre-authorized in OAuth Policies is critical for the security of the CXG Connected App. Do not change this setting after you update it to the admin-approved mode.