Example for UserSyncTool using OAuth-Server-to-Server with existing AccessToken and new one | Community
Skip to main content
October 14, 2024
Question

Example for UserSyncTool using OAuth-Server-to-Server with existing AccessToken and new one

  • October 14, 2024
  • 1 reply
  • 1899 views

Hallo,

I am looking for an example, how to use the UserSyncTool (UST) in combination with the OAuth-Server-to-Server-Credential with an existing OAuth-AccessToken.
Testing the new OAuth-connection always generates a new OAuth-AccessToken. The UST documentation seems to have only an example for the connector-umapi.yml but no example for an OAuth-parameter of the UST v9+ to handle an existing AccessToken.

Many Adobe-Websites have an outdated hyperlink to a 404-site (https://github.com/adobe-apiplatform/user-sync.py/blob/user-guide-wip/en/user-manual/connect_adobe.md), and at https://adobe-apiplatform.github.io/user-sync.py/en/user-manual/connect_adobe.html only the yml-file is described.
Can anyone help me to find an example of an UST-command using an existing OAuth-AccessToken?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Adobe Employee
October 14, 2024

Older UST scripts (<2.9.0) will not have OAuth support.

If that's the case for you as well, update it by downloading the latest release for your OS from releases, then put the new unzipped script file in the existing UST folder.

Make sure you use the updated connector-umapi.yml file. Copy the contents from the sample here and make sure you complete inside the quotes the values required for OrgID, Client ID and Secret as you have them in the OAuth deployed project.

Run your newer UST in test mode (add -t to command line) and check if it connects successfully and also does same sync as you're used to see.

Open a support ticket with dev support team if you bump into issues.

tmj
Adobe Employee
Adobe Employee
October 14, 2024

@lucian_n, you are the best!