Click or drag to resize

UserSecurityServicesCreateUserGroup Method

Creates a new FactoryLogix user group.

Namespace:  FactoryLogix.xTend.Configuration
Assembly:  FactoryLogix.xTend.API (in FactoryLogix.xTend.API.dll) Version: 8.242.0.0 (8.242.0.0)
Syntax
public UserGroup CreateUserGroup(
	Guid sessionId,
	UserGroup newUserGroup
)

Parameters

sessionId
Type: SystemGuid
The session identifier that was returned by the Connect(String, String, String, String, String) method.
newUserGroup
Type: FactoryLogix.xTend.DataObjectsUserGroup
A UserGroup 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: UserGroup
A UserGroup object representing the new user account which includes the new group'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 groupname specified in the UserGroup object already exists.
NotAuthorizedExceptionThrown when not authorized to perform the function.
See Also