Generally it’s a bit strange to assign users roles while they’re already in the app. But if you have good reason to do it then here’s how I’d manage the refresh:
mx.reloadWithState()
Hi John,
If do you want to refresh any object on the page you can use the RefreshClass from CommunityCommons module
Ref: Community Commons Function Library - Marketplace Guide | Mendix Documentation