MyBB Community Forums

Full Version: Updating users forum groups via external SSO system
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I currently have my own SSO system set up and I was wondering how I could link the users groups on the SSO system to my MyBB forum, if that is at all possible? Currently when a user creates an account on the SSO system they get a forum account as well but they manually have to select their user groups, they are not automatically transferred from the SSO system.

Thanks
Anyone got any ideas?
Please help
It is possible, just by accessing database directly.
For that you need to specify what is the identifier of the user? username? email id?
What is the group shifting scenario?
- The user will get the new group as primary or additional.
- If the user is going to have the new group as primary then the primary group will be shifted to additional or removed.
etc.

A simple script can be made with basic settings (MyBB and database related) and you can call the script from your SSO event to shift the user to any group you want.
or even modifying your existing script the new group can be set while creating user's forum account. That will be even simple.