Added an internal session to the getUsers query.