Create a user account via API (programmatically)

I would like to use SSO to authenticate and register users on my concrete5 website. When a user successfully authenticates, an object is returned with various details about the user. I would like to create a user account with those details. How can I do this via API?

View Replies:
nebuleu replied on at Permalink Reply
You can use the add() static public method of Concrete\Core\User\UserInfo class :

Quick example :
use Concrete\Core\User\UserInfo;
UserInfo::add(array('uName' => 'John Doe', 'uEmail' => [email protected]', 'uPassword' => '123456'));