'.. http:get:: /api/1/settings
Get the settings for the given user.
**Example Request**:
.. sourcecode:: http
GET /api/1/settings HTTP/1.1
Host: example.com
Accept: application/json
**Example Response**:
.. sourcecode:: http
HTTP/1.1 200 OK
Vary: Accept
Content-Type: application/json
"auth": {
"authenticated": true,
"user": "user@example.com"
"settings": [
"accounts": [
1,
2,
3,
6,
17,
21,
22
"change_reports": "ISSUES",
"daily_audit_email": true
:statuscode 200: no error
:statuscode 401: Authentication Error. Please Authenticate.'

def get(self):

    return_dict = {'auth': self.auth_dict, 'settings': []}
    user = User.query.filter((User.id == current_user.get_id())).first()
    if user:
        sub_marshaled = marshal(user.__dict__, USER_SETTINGS_FIELDS)
        account_ids = []
        for account in user.accounts:
            account_ids.append(account.id)
        sub_marshaled = dict((sub_marshaled.items() + {'accounts': account_ids}.items()))
        return_dict['settings'].append(sub_marshaled)
    return (return_dict, 200)
