Using code, no, because you can't upload plugins into OnDemand (and I don't think Connect is going to be that powerful)
Also, what does "from Jira to Confluence" mean? Where are you trying to update and what effect should it have on the other system? Even then, the answer is probably "depends entirely on what user management system you are using"
i can able to perform this one manually in the UI on Ondemand JIRA but i need the detail of how can i achieve through the REST API. By using REST API how can i activate and deactivate the user in confluence based on the JIRA user. It is possible to perform this one.
You can have JIRA do this for you by using the JIRA User Server.
Just do this to connect JIRA and Confluence:
After that, you can just go to the Confluence Admin page and under User Directories press "Synchronize".
Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time! We're looking for people to participate in a remote 1-hr workshop...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs