ConnectedIdentity.GetRoles Method
- Last UpdatedJan 12, 2026
- 1 minute read
- PI System
- AF SDK 3.2.0
- 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.2.0.7
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>