User 2.5 IsInRole [internal]

This stateless function validates your context and returns you if the current user has the requested user role (e.g. VUSERROLEADMINISTRATOR).


Parameters

NameTypeDirectionDescription
psAuthContextStringInOutDeprecated proprietary authentication context only used by .ASMX web services based on internal username/password authentication. Claims based security standards drive all the WCF .SVC web services making this parameter redundant.
psUserRoleIdStringInThe element name of the user role (e.g. VUSERROLEADMINISTRATOR)
pbOutResultBooleanOutBoolean indicating that the result of the function was true or false

Note that:
  • This function is used for internal purposes to mimic IsAdministrator functionality
  • For stateful client code we recommend to build up a principal object using User.GetMyMetaData where you implement your own IsInRole function on your cached user metadata which will greatly speed up your validation.