Hi,
it is done automatically if you use MonoX admninistration to remove an user from role. If you have a need to do it in code and use MonoX SecurityUtility to check for users role then you need to clear the cache after adding/removing to/from role:
Roles.AddUserToRole(
"someUserName"
,
"someRoleName"
);
SecurityUtility.RemoveRoleIdFromCache(
"someUserName"
);
and the you can call SecurityUtility to check for the user role:
SecurityUtility.IsUserInRole(
"someUserName"
,
"someRoleNameOrId"
);
Regards.