Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

AFSecurity.GetUserIdentityString Method (PISystem, WindowsIdentity)

AFSecurity.GetUserIdentityString Method (PISystem, WindowsIdentity)

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

Version Information

AFSDK

Supported in: 3.1.1, 3.1.0, 3.0.2, 3.0.1, 3.0.0, 2.10.11, 2.10.5, 2.10.0, 2.10, 2.9.5, 2.9, 2.8.5, 2.8, 2.7.5, 2.7

See Also

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