Click or drag to resize

PFSiteEnsureUser Method

Will check if PFUser exists based on principal or alternative identity. If not found, will validate login against AD or local accounts. If login exists, PFUser will be created and returned. Throws ValidationException is user could not be found in domain or Packflow.

Namespace:  Packflow.Core
Assembly:  MicaSystems.Packflow.Core (in MicaSystems.Packflow.Core.dll) Version: 1.0.0.0 (3.2.0.306)
Syntax
C#
public KeyValuePair<bool, PFUser> EnsureUser(
	string userLogin
)

Parameters

userLogin
Type: SystemString

Return Value

Type: KeyValuePairBoolean, PFUser
Returns two informations: the requested user and a boolean indicating whether the user was created or not.
See Also