You don't need necessarily to logout, a hard reload of the page should be sufficient.
You could trigger (via a Javascript action behind a nanoflow for example) the location.reload() function.
Downsides (unavoidable):
A completely alternative solution would be to not use the UserRoles, but your own custom visibility & access control, but in general I wouldn't recommend this.
Good luck!