AFGlobalSettings.CheckConnectAsDifferentUser Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Namespace: OSIsoft.AF
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public static bool CheckConnectAsDifferentUser { get; set; }
Public Shared Property CheckConnectAsDifferentUser As Boolean Get Set Dim value As Boolean value = AFGlobalSettings.CheckConnectAsDifferentUser AFGlobalSettings.CheckConnectAsDifferentUser = value
public: static property bool CheckConnectAsDifferentUser { bool get (); void set (bool value); }
static member CheckConnectAsDifferentUser : bool with get, set
Property Value
Type: BooleanReturns if the current user should be checked when making a remote call to the server. Set to to disable this check. The default value is .
Remarks
This check will ensure that the current user for the thread that was used to acquire the new PISystems object either explicitly or implicitly is the same user that is making a remote call to the server. The objects loaded in the SDK are maintained based upon the user identity of the thread when the new PISystems object was acquired. This check will prevent loading or updating objects when impersonating another user.
The default value for this property is read from the SDK's configuration file in the OSI directory under the CommonApplicationData directory. This default value will be the default for all clients executed on the computer. If this property is modified in the client, then it will only affect the current client and the modified value will not be persisted.