Subscribe other users to boards via API as admin user
Does anyone know if it's now possible to subscribe other users (e.g. users belonging to a specific role) to a board via the API as a user with admin privileges?
I found the two discussions below but since they were posted so long ago I'm hoping there has been an enhancement or someone has found a creative way of doing it in the interim:
- How to subscribe a user to board as admin through API
- Can REST be used to subscribe a list of users to a board?
I thought I'd try being clever and replace the "users/self" portion of the URL with "users/login/joeCustomer" or "users/id/1234" to see if that would work, but alas my Hail Mary attempts were in vain and returned the following response:
<response status="error">
<error code="501">
<message>
Unknown path element at node 'node_subscription_context.users'.
</message>
</error>
</response>
Is anyone aware of another way to accomplish this? Maybe there's an undocumented way to pass in a user object in the v2 /subscriptions endpoint or a way to leverage the "Switch User" functionality systematically?
I have already implemented a macro that registers the specific users to the boards as soon as they log in, but now I'm looking for how I can subscribe the rest of the users who haven't yet logged in since the macro was implemented.
(Context: We are contractually obligated to send certain product announcements to customers via email and we have always leveraged our community to do so via subscriptions. Jive/JX had a News Streams functionality that made it easy to "auto-subscribe" users to boards, but I haven't yet found a comparable functionality in Khoros.)
If anyone has any thoughts on how this can be done then it would be extremely appreciated. Thanks!
jeffshurtliff I got some information I wasn't aware of that I think should solve your use case.
I haven't had a chance to try this out yet, but I got the info from our Profession Services guru AdamN. Using Session Key authentication and API v1, you should be able to pass the user.login of the target user and an admin session key, and you will get back the session key of target user in the response. Your admin account will require the allow_switch_users permission.
[EDIT - FOLLOW UP] We added a Create subscriptions for another user guide in the Developer Doc Portal with deeper explanations and examples.
Please let me know if this works for you.
Cheers,
Suzie