How do I add a default role & permissions to a user?

Continuing the discussion from How do I add a default role to a new user on first login?:

Following this discussion, I implemented the rule to add the default role.

This will however only add the granted permissions when the user logs in a second time.

How can I make sure that the user gets his role & permissions even in the first logins token?


I have the same problem. Have you found a solution yet?

I’ve found an ugly hack, but not really a solution: The client has to immediately refresh on first login. The second token will be correct.