Click or drag to resize

UserSecurityServicesAddUsersToGroup Method

Adds multiple pre-existing FactoryLogix user accounts to an 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 AddUsersToGroup(
	Guid sessionId,
	string userGroupName,
	IEnumerable<string> userNames
)

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.
userNames
Type: System.Collections.GenericIEnumerableString
A list of usernames that are 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 any of the users specified by the userNames parameter do not exist.
NotAuthorizedExceptionThrown when not authorized to perform the function.
See Also