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

AF SDK Reference

AFSecurity.GetUserIdentities Method (PISystem, WindowsIdentity)

AFSecurity.GetUserIdentities Method (PISystem, WindowsIdentity)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFSecurity.GetUserIdentities Method (PISystem, WindowsIdentity)
Gets the list of AFSecurityIdentity identities for the specified user on the PISystem server.

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

Syntax

public static IList<AFSecurityIdentity> GetUserIdentities(
	PISystem system,
	WindowsIdentity userIdentity
)
Public Shared Function GetUserIdentities ( 
	system As PISystem,
	userIdentity As WindowsIdentity
) As IList(Of AFSecurityIdentity)

Dim system As PISystem
Dim userIdentity As WindowsIdentity
Dim returnValue As IList(Of AFSecurityIdentity)

returnValue = AFSecurity.GetUserIdentities(system, 
	userIdentity)
public:
static IList<AFSecurityIdentity^>^ GetUserIdentities(
	PISystem^ system, 
	WindowsIdentity^ userIdentity
)
static member GetUserIdentities : 
        system : PISystem * 
        userIdentity : WindowsIdentity -> IList<AFSecurityIdentity> 

Parameters

system
Type: OSIsoft.AFPISystem
The PISystem to obtain the security identities for the specified userIdentity.
userIdentity
Type: System.Security.PrincipalWindowsIdentity
The WindowsIdentity of the user for the security identities to be returned. Only domain accounts are supported by this method.

Return Value

Type: IListAFSecurityIdentity
Returns the list of AFSecurityIdentity identities for the specified userIdentity on the specified system. Returns if the security identities could not be read from the server.

Remarks

This method will return the list of security identities for the specified user on a PISystem. This method will only return identities if using a 2.7 or later version of the PI AF Server. For earlier versions of the server, will be returned.

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, 2.7

See Also

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