AFActiveDirectoryProperties.ImpersonateUser Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Indicates whether the security of the client or server should be used when accessing Active Directory.
Namespace: OSIsoft.AF
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public bool ImpersonateUser { get; set; }
Public Property ImpersonateUser As Boolean Get Set Dim instance As AFActiveDirectoryProperties Dim value As Boolean value = instance.ImpersonateUser instance.ImpersonateUser = value
public: property bool ImpersonateUser { bool get (); void set (bool value); }
member ImpersonateUser : bool with get, set
Property Value
Type: BooleanWhen , the identity of the client will be used to access Active Directory. When , the identity of the server will be used.
Remarks
Accessing the information in active directory is controlled by security. So, there are
two choices for the account that is used to access AD when doing the search, either
the account of the user that is accessing the SDK (if this setting is ) or
the account that the server is running under (if this setting is ).