Click or drag to resize

IUserManagerAddUser Method


Creates a new User.

Namespace:  Ingeniux.CMS
Assembly:  Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.3.169
Syntax
IUser AddUser(
	string userId,
	string name,
	string userEmail
)

Parameters

userId
Type: SystemString
The ID of the User
name
Type: SystemString
Name of the User
userEmail
Type: SystemString
The Email address of the User

Return Value

Type: IUser
The User that was created.
Exceptions
ExceptionCondition
ArgumentNullExceptionWhen "userId" is null or empty.
ArgumentExceptionWhen another User with the same User Id already exists.
SecurityExceptionWhen the Operating User doesn't have administrative privileges.
Remarks

The new User that was created was not yet saved to the Content Store. It will be saved when the Write Session is disposed.

The new User cannot yet login to the CMS until it is added to at least one Group.

If "name" parameter value is null or empty, the "userId" parameter value will be used for the User Name.

The event UserCreated is fired after the new User is created in Session.

See Also