Click or drag to resize

UserSecurityServicesAddUserToGroup Method

Adds an pre-existing FactoryLogix user account to an pre-existing 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 void AddUserToGroup(
	Guid sessionId,
	string userGroupName,
	string userName
)

Parameters

sessionId
Type: SystemGuid
The session identifier that was returned by the Connect(String, String, String, String, String) method.
userGroupName
Type: SystemString
The name of the user group to which the user should be added.
userName
Type: SystemString
The username of the user account to be added to the user group.
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.
UserGroupNotFoundExceptionThrown if the user group specified by the userGroupName parameter does not exist.
UserNotFoundExceptionThrown if the user specified by the userName parameter does not exist.
NotAuthorizedExceptionThrown when not authorized to perform the function.
See Also