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

AF SDK Reference

AFAdmin.EnableExternalDataTablesAllowNonImpersonatedUsers Method

AFAdmin.EnableExternalDataTablesAllowNonImpersonatedUsers Method

  • Last UpdatedNov 18, 2025
  • 3 minute read
AFAdmin.EnableExternalDataTablesAllowNonImpersonatedUsers Method
Enables support for an AFTable to link to an external source with non-impersonated users.

Namespace:  OSIsoft.AF.Diagnostics
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

public static void EnableExternalDataTablesAllowNonImpersonatedUsers(
	PISystem system,
	bool enable
)
Public Shared Sub EnableExternalDataTablesAllowNonImpersonatedUsers ( 
	system As PISystem,
	enable As Boolean
)

Dim system As PISystem
Dim enable As Boolean

AFAdmin.EnableExternalDataTablesAllowNonImpersonatedUsers(system, 
	enable)
public:
static void EnableExternalDataTablesAllowNonImpersonatedUsers(
	PISystem^ system, 
	bool enable
)
static member EnableExternalDataTablesAllowNonImpersonatedUsers : 
        system : PISystem * 
        enable : bool -> unit 

Parameters

system
Type: OSIsoft.AFPISystem
The operation will be performed on the specified PISystem.
enable
Type: SystemBoolean
Specify to allow access to an externally linked AFTable for non-impersonated users; otherwise specify to disable this feature.

Exceptions

ExceptionCondition
SecurityException This exception is thrown when attempting to execute without Admin security rights.
ArgumentNullException This exception is thrown when attempting to execute on a PISystem that is null or deleted.
NotSupportedException This exception is thrown when attempting to execute on a PISystem that does not support the AdminFunctionality feature.

Remarks

This method is used to enable or disable the ExternallyLinkedTableWithNonImpersonatedUser feature in the PI AF SQL Server database. This feature controls support for allowing access to an externally linked AFTable for non-impersonated users. If supported, an externally linked AFTable is not required to use client impersonation. See LinkExternal(IDbDataAdapter, Boolean, SecureString) for more details.

Use the PISystem.Supports method to check if the PISystem supports the AdminFunctionality feature.

Security note Security Note
Requires the Admin right to execute.
Note Notes to Callers
This method will error on servers before AF 2018 R2 (2.10.5).

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

See Also

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