-
Notifications
You must be signed in to change notification settings - Fork 6
REST API to Sync
Venkat Prasad edited this page Jun 12, 2017
·
3 revisions
$ 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}
$
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
$ curl -u "admin:admin" -XGET http://localhost:8080/rest/ldapgroupsync/1.0/run/get/configs