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

AF SDK Reference

AFSecurity.GetIdForRoleName Method

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

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

Syntax

public static string GetIdForRoleName(
	string roleName
)
Public Shared Function GetIdForRoleName ( 
	roleName As String
) As String

Dim roleName As String
Dim returnValue As String

returnValue = AFSecurity.GetIdForRoleName(roleName)
public:
static String^ GetIdForRoleName(
	String^ roleName
)
static member GetIdForRoleName : 
        roleName : string -> string 

Parameters

roleName
Type: SystemString
Role name including Id of the provider. ProviderId\Directory\RoleName

Return Value

Type: String
string containing the Role Id

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