AFSecurity.GetUserIdentities Method (PISystem, ClaimsIdentity)
- 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, 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.