Groups were not being added to the context. Although it was working fine, the list of groups by user was not available on the browser.