[api] Refresh groups after login