There's no ready made API for this, but you can try the following:const allCids = await Categories.getAllCidsFromSet('categories:cid'); const groupCids = await privileges.categories.filterCids('topics:create', allCids, 'groupName');
Query NodeBB to add user to group
I'd like to ask you for some help on a problem I need to solve. In a nutshell, I have to make it so that my nodebb forum can be queried to add a user to a group.
The reason of my request is that I have a website that is connected to my forum through the Session Sharing plugin. You login on the website, a signed cookie is created, and when you open the forum the Session Sharing plugin reads that cookie and logs you in (or creates and account first if it doesn't exist yet). Now I want to give users the chance to manage their groups on my website and see that reflected in nodebb.
Could you point me to any existing plugin that allows me to do so, or just to the way such a system could be implemented?
Thank you all!
No one has any small insight?
This should go through https://github.com/NodeBB/nodebb-plugin-write-api
Glad to hear it @Jarko