Hi Henrique,
You can get the roles client side with Javascript (meaning, you don't have to be online to do it). You just need to place the javascript on the OnReady or OnInitialize and assign the roles to a local variable (e.g. HasAdminRole) and then use the variable on your screen.
You can read in this OutSystems documentation article, how to do it.

Kind Regards,
João