Click or drag to resize

UserInfoCreateUserFromIdentity Method

Initializes a new instance of UserInfo using an identity.

The UserInfo will contain : [Login], [SID if WindowsIdentity, or found in AD] and [PrincipalGuid, DisplayName, Email if found in AD].

Namespace:  MicaSystems.Utils
Assembly:  MicaSystems.Utils (in MicaSystems.Utils.dll) Version: 1.0.0.0 (1.1.0.123)
Syntax
C#
public static UserInfo CreateUserFromIdentity(
	IIdentity identity,
	Dictionary<string, PrincipalContext> contextsCache = null
)

Parameters

identity
Type: System.Security.PrincipalIIdentity
contextsCache (Optional)
Type: System.Collections.GenericDictionaryString, PrincipalContext

Return Value

Type: UserInfo
See Also