AFSecurity.GetRoleNameForId Method
- Last UpdatedJan 12, 2026
- 2 minute read
- PI System
- AF SDK 3.2.0
- Developer
Helper method that returns the Name for an OpenID Connect Role.
Namespace: OSIsoft.AF
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.2.0.7
Syntax
public static string GetRoleNameForId( string roleId )
Public Shared Function GetRoleNameForId ( roleId As String ) As String Dim roleId As String Dim returnValue As String returnValue = AFSecurity.GetRoleNameForId(roleId)
public: static String^ GetRoleNameForId( String^ roleId )
static member GetRoleNameForId : roleId : string -> string
Parameters
- roleId
- Type: SystemString
Id for OpenId Connect Role
Return Value
Type: Stringstring containing the Role Name