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

AF SDK Reference

ConnectedIdentity.GetRoles Method

  • Last UpdatedNov 18, 2025
  • 1 minute read
ConnectedIdentity.GetRoles Method
Return the list of roles associated with the ClaimsIdentity. If the token has expired, the list of roles will be empty list. WindowsIdentity of the user.

Namespace:  OSIsoft.AF.Support
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

public List<string> GetRoles()
Public Function GetRoles As List(Of String)

Dim instance As ConnectedIdentity
Dim returnValue As List(Of String)

returnValue = instance.GetRoles()
public:
List<String^>^ GetRoles()
member GetRoles : unit -> List<string> 

Return Value

Type: ListString

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