Creates a new User.
Namespace: Ingeniux.CMS
Assembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 9.0.565.0 (9.0.565)
Syntax
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: IUserThe User that was created.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | When "userId" is null or empty. |
ArgumentException | When another User with the same User Id already exists. |
SecurityException | When 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