ConnectedIdentity.GetRoles Method
- Last UpdatedNov 18, 2025
- 1 minute read
- PI System
- AF SDK 2024 R2
- Developer
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>