This method basically "creates" a user like createUser() would, except that it does not create the User
object itself. If you need to create the User object elsewhere, for example in your ActionController, make sure
to call this method for registering the new user instead of adding it to the PartyRepository manually.
This method also creates a new user workspace for the given user if no such workspace exist.
public addUser ( string $username, string $password, |
||
$username | string | The username of the user to be created. |
$password | string | Password of the user to be created |
$user | The pre-built user object to start with | |
$roleIdentifiers | array | A list of role identifiers to assign |
$authenticationProviderName | string | Name of the authentication provider to use. Example: "Typo3BackendProvider" |
Résultat | The same user object |