Update user_former_groups and user_properties, improve user_groups updating

Bug: 49518
Change-Id: Ia0a36b87a9e577c41b0c3796dcdecd1a5f7edf19