Click or drag to resize

UserSecurityServicesCreateUser Method

Creates a new FactoryLogix user account.

Namespace:  FactoryLogix.xTend.Configuration
Assembly:  FactoryLogix.xTend.API (in FactoryLogix.xTend.API.dll) Version: 8.242.0.0 (8.242.0.0)
Syntax
public User CreateUser(
	Guid sessionId,
	User newUser
)

Parameters

sessionId
Type: SystemGuid
The session identifier that was returned by the Connect(String, String, String, String, String) method.
newUser
Type: FactoryLogix.xTend.DataObjectsUser
A User object representing the details for the new user account. The ID field will be ignored and replaced with a valid ID during processing.

Return Value

Type: User
A User object representing the new user account which includes the new user's ID, and may be used for subsequent updates.
Exceptions
ExceptionCondition
InvalidSessionExceptionThrown if the sessionId parameter is invalid.
NotAuthorizedExceptionOccurs if the current user is not authorized to use this feature.
ArgumentExceptionOccurs if any of the parameters are invalid.
AlreadyExistsExceptionThrown if the username specified in the User object already exists.
NotAuthorizedExceptionThrown when not authorized to perform the function.
See Also