Add user to private forum allowed list

Avatar
  • updated
  • Answered
Is there a way through the API for us to add a user to the "allowed user" list for a private forum? We want to automatically allow new beta users to get forum access.
Pinned replies
Avatar
Sergey Stukov co-founder
  • Answer
  • Answered
It's possible using Single Sign On function 

Just pass additional parameter allowed_private_forums: [forum_id],
inside SSO token.
Avatar
Richard Sloggett (Support)
  • PINNED
Quote from Sergey Stukov
Try to put forum_id in square brackets

"allowed_private_forums":[10505]

Many thanks for your help with this - up and running now. Your support is excellent. Feel free to use the VB.NET SSO_TOKEN generation code I sent - might help someone else get up and running with a VB.NET site.
Avatar
Sergey Stukov co-founder
Your Private forum Liminitix has id 10505
Also put allowed_private option in double quotes like other parameters
Avatar
Thanks for your reply. I'm getting a "This Forum is private" message when trying this. I have checked that SSO users are enabled for the private forum I am testing with and have verified that my project key and api key are correct.

I'm unsure if I have used the correct value for Forum Id. This is what my Json string looks like before encryption - does this look right?

{"guid":"test@test.net",
"expires_date":"2012-01-25 10:03:05",
"display_name":"Test User",
"email":"test@test.net",
"locale":"en",
allowed_private_forums:10506}

Is there a way for me to test my SSO_TOKEN? Just a suggestion, but it would be handy to have a page I can redirect to with the SSO_TOKEN that would validate it for me so I know that bit is correct.
Avatar
Sergey Stukov co-founder
  • Under review
It's possible using Single Sign On function 

Just pass additional parameter allowed_private_forums: [forum_id],
inside SSO token.