Thanks to Romain Paillas, the solution was to use the stream "communication".
- use the stream "connections" to force someone to follow a place/group ...
- use the stream "communication" to force someone to receive inbox notification from a place/group ...
Hey alain lachendrowiecz,
So I've been looking for a way to make about 140 users follow one space. I've read all the discussions about this explaining streams, and I still don't get it. Your post gives a little insight but still not having success.
How would we declare the recieveEmail and source in the post request? Can you show an example of how this would look in a request as well as in a curl?
Also, is there any way you can explain how making a user follow a space works? I'm at a total loss in understanding. I have my users 'people/ids/streams' that I will iterate over and post to a stream, but not sure if that is accurate? I know this thread is a few months old, but there's very little activity in these forums.
Sorry James Hicks, i didn't saw your question untill now ...
Do you still have the problem ?
First you'll have to use the full admin account, (FullAdminUser, Fulladminpassword )
then, get the id of the place you want the users to subscribe, (idPlace)
Finally, for each user you'll have to get their connection id, (idConnection)
Then just run this curl command :
curl -k -i -u FullAdminUser:Fulladminpassword -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Jive-Run-As: email $user" -X POST --data '["https://xxxxxxxx.jiveon.com/api/core/v3/places/idPlace"]' https://xxxxxxxx.jiveon.com/api/core/v3/streams/idConnection/associations;