Hey, (TL;DR at bottom)
I have been playing around for a while with the sdk and am having an issue understanding Jive Communities and the role they play with webhooks. I will lay out what I am trying to do first to give context.
I want an application that will be notified via webhook that a user has modified their profile. Then based on that information I want to grab the users information in a secondary call (since the modified fields aren't included in the webhook response... v4 ? ) and then push that data into our LDAP system. The purpose is to keep 3rd party applications from modifying our LDAP but to also keep Phone numbers/address's/etc... in sync between the two systems. Now for what I have been doing so far.
I started out in Jive v18.104.22.168 and with a starter app that made no use of the jive-sdk, made direct calls to the REST api to register a webhook. This took a bit of finagling but I finally got the system to work and return a call to me when a user was created or deleted but not on profile modification. For this I found that specific verb was added in v7.0.1 so I of course, upgraded my system. After the upgrade I reinstalled the app and saw the correct verb coming across, horray! But then I realized that I needed another call, changed something in the app and removed the db * extension.zip (which I had not done since before the upgrade) and on re-installation of the app, Jive refused to register it. So I turned to the examples and to the community to learn, which all used the sdk...
After a few days of figuring out how the nodejs jive-sdk module works, I thought I had finally figured things out. I created an app with the correct directory structure, created a services.js file and in it, the exports.onBootstrap call that would register my webhook. After installing the app to Jive and seeing the instance come through in the console, I saw this error:
"Error: Failed to create community webhook. No access token associated with community, and none provided explicitly."
I can't find anything in the community with that error message or anything with parts of it so I tried using one of the pre-built jive-sdk examples with webhooks.... after adding callbacks for success and error to the webhook registration I saw the exact same error! Thus, I have come to the conclusion that I do not understand what the "community" property in the webhooks is for or how to properly use it. And yes, it is a fairly explanatory error, but I don't know what is defined as a "Community" or where I would set an access token on it and Jive searches were not helping in the least.
TL;DR: Got the above bolded error when trying to register a webhook through my own app and through the "example-auth" app when adding callbacks to the webhook registration. Not sure if I am missing something like a setting or am confused on the overall way that the system should work.
Any help would be greatly appreciated as I am fairly lost at this point... Thanks!