Google Groups Sync For Jira REST API
Auto Sync Configurations
GET http://localhost:8080/rest/googlegroupsync/1.0/utility/list/admin/config
$ curl -u username -XGET http://localhost:8080/rest/googlegroupsync/1.0/utility/list/admin/config Enter host password for user 'username ': [{"configId":3,"googleGroup":"ila.esolution.admin.list@ilaesolution.com","jiraGroup":"ila.esolution.admin.list"}] $
ADD AUTO SYNC CONFIGURATION
POST http://localhost:8080/rest/adgroupsync/1.0/utility/add/admin/config
Response: [Status: 200]
DELETE AUTO SYNC CONFIGURATION
DELETE http://localhost:8080/rest/adgroupsync/1.0/utility/remove/admin/config/id/{configId}
Perform Sync
POST http://localhost:8080/rest/googlegroupsync/1.0/utility/run/admin/sync
Required Schema Fields:
- googleGroup (String)
- jiraGroup (String)
Response: [Status: 200]
$ curl -u username -XPOST -H "Content-Type: application/json" --data '{"googleGroup": \ "ila.esolution.admin.list@ilaesolution.com","jiraGroup": "ila.esolution.admin.list"}' \ http://localhost:8080/rest/googlegroupsync/1.0/utility/run/admin/sync Enter host password for user 'username ': {"message":"Sync Successful, Update Size ( 2 ). Took 2.86 Seconds","id":0} $
POST http://localhost:8080/rest/googlegroupsync/1.0/utility/run/user/sync
Same as above but this endpoint can execute any confluence user, it will create confluence group name same as Google group name.
Required Schema Fields:
- googleGroup (String)
Response: [Status: 200]
$ curl -u username -XPOST -H "Content-Type: application/json" --data '{"googleGroup": \ "ila.esolution.admin.list@ilaesolution.com"}' http://localhost:8080/rest/googlegroupsync/1.0/utility/run/admin/sync Enter host password for user 'username ': {"message":"Sync Successful, Update Size ( 2 ). Took 2.86 Seconds","id":0} $
POST http://localhost:8080/rest/googlegroupsync/1.0/utility/run/admin/sync/config/id/{configId}
Query Parameters:
- configId (Number) - Google Sync Map Config ID
Response: [Status: 200]
$ curl -u username -XPOST http://localhost:8080/rest/googlegroupsync/1.0/utility/run/admin/sync/config/id/6 \ -XPOST -H "Content-Type: application/json" Enter host password for user 'username ': {"message":"Successful, Update Size(9). Took 1.21 Seconds","id":0} $