HOME COMMUNITY BLOG
Skip to end of metadata
Go to start of metadata

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

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
  • No labels