Add user id to JSON user export

If "add personal data" is selected, the username serves as the main key
and the user id wasn't in its attributes.
Add optional attributes to JSON user export