Ward identity in the many-body system and magnetic moments