How to test synchronizing with Jira user server via REST API
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
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).
1
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).
1
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).
Was this helpful?