After new user is made Mx dont recognize it as that type of user

Hi guys, I made in MF a new user, and committed it, and then i send it directly to his dashboard with buttons and stuff. I see that the page is loaded but the buttons that triggers microflows for this user type arent visible. When I press F5 I have to log in again, and then all the stuff become visible. I tried to use an java action "refreshClassByObject" , but this did not you have experience with this? What is how to send the new user directly to his dashboard, without logging in.
1 answers

You'll have to reload the user's permissions in order for this to work. See this thread to get the basic idea on how this could be achieved.