Skip to content

REST API to Sync

Venkat Prasad edited this page Jun 12, 2017 · 3 revisions

REST API to Sync LDAP Groups (Admins)

$ curl -u "admin:admin" -XPOST -H "Content-Type: application/json" --data '{"ldapGroup":"asrd.bre.staff","jiraGroup":"asrd.bre.staff"}' http://localhost:8080/rest/ldapgroupsync/1.0/run/admin/sync

{"message":"Successful. Size(20). Took 4.29 Seconds","status":0}

$

REST API to Sync LDAP Groups (Self Service - Any JIRA user can execute)

URI - http://localhost:8080/rest/ldapgroupsync/1.0/run/self/sync/{ldap-group}

$ curl -u "admin:admin" -XPOST http://localhost:8080/rest/ldapgroupsync/1.0/run/self/sync/asrd.bre.staff

{"message":"Successful. Size(20). Took 4.29 Seconds","status":0}

$

Note. JIRA Group name will be synced/created same as LDAP group

REST API to get LDAP Groups Auto Sync Mappings (Admins)

$ curl -u "admin:admin" -XGET http://localhost:8080/rest/ldapgroupsync/1.0/run/get/configs

Clone this wiki locally