Open Closed

StaticRole definition #3251


0
okeziestanley created

Good day all, I am using Module Zero and in the module configuration I created some static role definitions . But when I use the RoleManager to retrieve all roles, it doesn't include the StaticRole definitions(returns only from the database). How can I access those or write them to the database. Thanks


1 Answer(s)
  • 0
    ismcagdas created
    Support Team

    Hi,

    When creating each tenant you need to create static roles for that tenant as well using

    await _roleManager.CreateStaticRoles(tenantId);
    

    For current tenants, you need to manually create those static roles.

    Thanks.