IsInRole API

To populate roles outside from Origam, system provides IsInRole API function.IsInRole API is a handler, so to use it, you need to adjust Startup.cs. Add following code:

Declaration of IsInRole in Startup.cs

app.Map(new PathString("/IsInRole"), (application) =>

IsInRole function expects one parameter name, that contains name of the role, you’re checking.

Example of IsInRole request


Return value is a boolean in JSON format.

Example of IsInRole return value

    Result: true