fixes #5242 - Update user upon every logon

Attributes and group memebership are being updated upon every logon.

This is a new PR that replaces #1391 it's squashed and implements reviews from original PR