AFSecurity.GetIdForRoleName Method
- Last UpdatedJan 12, 2026
- 2 minute read
- PI System
- AF SDK 3.2.0
- Developer
Helper method that returns the Id for an OpenID Connect Role.
Namespace: OSIsoft.AF
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.2.0.7
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: Stringstring containing the Role Id