AFSecurity.GetUserIdentities Method (PISystem, WindowsIdentity)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
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: IListAFSecurityIdentityReturns 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.