How to test synchronizing with Jira user server via REST API

Still need help?

The Atlassian Community is here for you.

Ask the community

Purpose

If any issue, especially connectivity issue, occurred during synchronizing with Jira user server, it is better to send Rest APIs to simulate synchronizing, and get more information for investigation.

Solution

Here are the APIs to test synchronizing with Jira user server for incremental sync and full sync.

Incremental Sync Request

  • Get a token for incremental synchronization.

    • Go to Jira Administration > System > Logging and profiling

    • Click Configure link in "Configure logging level for another package"

    • Add the "com.atlassian.crowd" package with "DEBUG"

    • You need to get the token for incremental sync from the application log

  • Replace the token with your one, and running curl command as below from application server (such as, Confluence).

curl -v -k -i -u application-name:application-password "https://jira_base_url/rest/usermanagement/1/event/-1234567891234567890%3A777"

Full Sync Request

Running curl command as below from application server (such as, Confluence).

curl -v -k -i -u application-name:application-password "https://jira_base_url/rest/usermanagement/1/event"

According to Crowd Rest API, the application name and password is used for authentication (and not a username and password).

Last modified on Sep 30, 2020

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.