How to test synchronizing with Jira user server via REST API

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

目的

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.

ソリューション

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).

最終更新日 2020 年 9 月 30 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.