Click or drag to resize

UserSecurityServicesAddUserCertifications Method

Adds new operator certifications to the user account specified by the userName parameter. The user's final certification list will be the union of the their existing certifications, and the certifications specified by the newCertifications parameter. If any of the certifications in the newCertifications list are already associated to the user, the effective and expiration dates for those certifications will be updated.

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 AddUserCertifications(
	Guid sessionId,
	string userName,
	IEnumerable<Certification> newCertifications,
	Nullable<bool> isTrainee
)

Parameters

sessionId
Type: SystemGuid
The session identifier that was returned by the Connect(String, String, String, String, String) method.
userName
Type: SystemString
The username of the user account whose certifications are to be updated.
newCertifications
Type: System.Collections.GenericIEnumerableCertification
A list of Certification objects representing the operator certifications to be added to the user account.
isTrainee
Type: SystemNullableBoolean
Optional: Is the current user a trainee and requires auditing of another user when he wants to checkout of an operation?
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.
UserNotFoundExceptionThrown if the userName parameter is invalid.
CertificationNotFoundExceptionThrown if one or more of the certifications specified by the newCertifications parameter has an invalid Id property and does not exist in the system.
NotAuthorizedExceptionThrown when not authorized to perform the function.
See Also