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:
IsInRole function expects one parameter
name, that contains name of the role, you're checking.
Return value is a boolean in JSON format.