Create Web Services
Here's the initial setup for these tasks:
-
Sign in to Fusion Service and activate a sandbox.
-
Click Navigator > Configuration > Application Composer.
-
In the Explorer, expand Common Setup, then click Web Services.
Create the FindIdcsGuidByLoginId Web Service
Create the FindIdcsGuidByLoginId web service by doing the following:
-
In the Web Services work area, click the Create Web Service reference icon.
-
In the Select Connection Type dialog box, choose REST and then click OK.
-
In the Create REST Web Service Connection work area, enter the following in the Name field: FindIdcsGuidByLoginId.
-
In the URL field enter
https://<IDCS_HOST>>/admin/v1/Users?filter=userName%20eq%20%22##LOGIN_ID##%22
-
In the Authentication Scheme area, select Call using IDCS OAUTH.
-
Click the Create Credential Key icon (+) beside the Client Credential Key drop down list.
-
In the Client Key dialog box, enter the following:
-
CSF Key: contact-sync-app-key
-
User Name: Enter the Client ID.
-
Password: Enter the Client Secret.
-
-
Click OK.
-
In the Token URL field enter the following:
https://<<IDCS_HOST>>/oauth2/v1/token
-
In the Scope field enter urn:opc:idm:__myscopes__
-
Make sure the Subject Precedence check box isn't selected.
-
In the Authentication Scheme area, select Call using IDCS OAUTH.
-
Click the Create Credential Key icon (+) beside the Credential Key for Switch Identity drop down list.
-
In the CSF Key text box enter contact-sync-admin-key
-
In the Client Key dialog box, enter the following: field enter:
-
CSF Key: contact-sync-admin-key
-
User Name: Enter contact.sync.admin.user.
-
Password: Enter the password for the user.
-
-
Click OK.
-
In the Select and configure Methods against the Resource work area, select the GET check box.
-
For Request Payload, select the Schema URL option.
-
For Response Payload choose Code Sample, and enter the following in the code field:
{}
. -
Click Save and Close.
Create the UpdateIdcsUserAttributes Web Service
Create the UpdateIdcsUserAttributes web service by doing the following:
-
In the Web Services work area, click the Create Web Service reference icon.
-
In the Select Connection Type dialog box, choose REST and then click OK.
-
In the Create REST Web Service Connection work area, enter the following in the Name field: UpdateIdcsUserAttributes.
-
In the URL field enter
https://<IDCS_HOST>>/admin/v1/Users/##USER_ID##
-
In the Authentication Scheme area, select Call using IDCS OAUTH.
-
Click the Client Credential Key drop down list, and select: contact-sync-app-key.
-
In the Token URL field enter the following:
https://<<IDCS_HOST>>/oauth2/v1/token
-
In the Scope field enter urn:opc:idm:__myscopes__
-
Make sure the Subject Precedence check box isn't selected.
-
Click the Credential Key for Switch Identity drop down list, and select: contact-sync-admin-key.
-
In the Select and configure Methods against the Resource work area, select the PATCH check box.
-
For Method Name, click the drop down list and select PATCH.
-
For Format, click the drop down list and select JSON.
-
For Request Payload, select Code Sample, and enter the following in the code field:
{}
-
For Response Payload choose Code Sample, and enter the following in the code field:
{}
. -
Click Save and Close.
Create the FindSelfServiceUser Web Service
Create the FindSelfServiceUser web service by doing the following:
-
In the Web Services work area, click the Create Web Service reference icon.
-
In the Select Connection Type dialog box, choose REST and then click OK.
-
In the Create REST Web Service Connection work area, enter the following in the Name field: FindSelfServiceUser.
-
In the URL field enter
https://<<FA_HOST>>/crmRestApi/resources/11.13.18.05/selfServiceRoles?q=ContactPartyId=##CONTACT_PARTY_ID##%20and%20RelationshipTypeCd=%27ORA_CSS_USER%27
-
In the Authentication Scheme area, select Call with Basic Authentication.
-
Create or use a Client Credential Key for the user in Fusion Service that has the Sales Administrator role or Customer Self-Service Administration duty role.
-
In the Select and configure Methods against the Resource work area, select the GET check box.
-
For Method Name, click the drop down list and select GET.
-
For Format, click the drop down list and select JSON.
-
For Request Payload, select Schema URL.
-
For Response Payload choose Code Sample, and enter the following in the code field:
{}
. -
Click Save and Close.