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, ClaimsIdentity)

AFSecurity.GetUserIdentities Method (PISystem, ClaimsIdentity)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFSecurity.GetUserIdentities Method (PISystem, ClaimsIdentity)
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: 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

See Also

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