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

AF SDK Reference

AFSecurity.GetRoleNameForId Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFSecurity.GetRoleNameForId Method
Helper method that returns the Name for an OpenID Connect Role.

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

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: String
string containing the Role Name

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
Related Links
TitleResults for “How to create a CRG?”Also Available in