AFSecurity.GetUserIdentityString Method (PISystem, WindowsIdentity)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Gets the security identity string 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 string GetUserIdentityString( PISystem system, WindowsIdentity userIdentity )
Public Shared Function GetUserIdentityString ( system As PISystem, userIdentity As WindowsIdentity ) As String Dim system As PISystem Dim userIdentity As WindowsIdentity Dim returnValue As String returnValue = AFSecurity.GetUserIdentityString(system, userIdentity)
public: static String^ GetUserIdentityString( PISystem^ system, WindowsIdentity^ userIdentity )
static member GetUserIdentityString : system : PISystem * userIdentity : WindowsIdentity -> string
Parameters
- system
- Type: OSIsoft.AFPISystem
The PISystem to obtain the security identity string for the specified userIdentity. - userIdentity
- Type: System.Security.PrincipalWindowsIdentity
The WindowsIdentity of the user for the security identity string to be returned. Only domain accounts are supported by this method.
Return Value
Type: StringThe returned string includes the name of the specified userIdentity along with the list of security identities for that user within parentheses and separated by a vertical bar.
Remarks
This method will return a string representation of the specified user identity along
with that user's associated security identities enclosed within parentheses.