Hello,
I am creating and deleting roles using the functions system.user.addRole and system.user.removeRole.
This works correctly, and if I use the function system.user.getRoles, everything is fine.
However, if I delete the roles directly from the "_roles" database table, the User Source locks up, and even the "_roles" table remains empty, the function "system.user.getRoles" still returns the last set of roles.
Even if I log out and log back in, the Startup Session Event is executed, but the roles remain the same as before emptying the "_roles" table.
If I execute a "system.user.addRole" again, the User Source gets reloaded and the result of getRoles is then returned correctly.
Similarly, if I deactivate the "User Source" and then reactivate it, the getRoles function also starts working again.
Regards