Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

AFGlobalSettings.CheckConnectAsDifferentUser Property

AFGlobalSettings.CheckConnectAsDifferentUser Property

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFGlobalSettings.CheckConnectAsDifferentUser Property
Indicates if the current user should be checked when making a remote call to the server.

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: Boolean
Returns 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.

Version Information

AFSDK

Supported in: 3.1.1, 3.1.0, 3.0.2, 3.0.1, 3.0.0, 2.10.11, 2.10.5, 2.10.0, 2.10, 2.9.5, 2.9, 2.8.5, 2.8, 2.7.5

See Also

In This Topic
TitleResults for “How to create a CRG?”Also Available in