AFSecurity.GetUserIdentities Method (PISystem, ClaimsIdentity)
- Last UpdatedJan 12, 2026
- 2 minute read
- PI System
- AF SDK 3.2.0
- 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.2.0.7
Syntax
public static IList<AFSecurityIdentity> GetUserIdentities( PISystem system, ClaimsIdentity userIdentity )
Public Shared Function GetUserIdentities ( system As PISystem, userIdentity As ClaimsIdentity ) As IList(Of AFSecurityIdentity) Dim system As PISystem Dim userIdentity As ClaimsIdentity Dim returnValue As IList(Of AFSecurityIdentity) returnValue = AFSecurity.GetUserIdentities(system, userIdentity)
public: static IList<AFSecurityIdentity^>^ GetUserIdentities( PISystem^ system, ClaimsIdentity^ userIdentity )
static member GetUserIdentities : system : PISystem * userIdentity : ClaimsIdentity -> IList<AFSecurityIdentity>
Parameters
- system
- Type: OSIsoft.AFPISystem
The PISystem to obtain the security identities for the specified userIdentity. - userIdentity
- Type: System.Security.ClaimsClaimsIdentity
The ClaimsIdentity of the user for the security identities to be returned.
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.