'.. http:put:: /api/1/users/<int:user_id>
Change the settings for the current user.
**Example Request**:
.. sourcecode:: http
PUT /api/1/users/15 HTTP/1.1
Host: example.com
Accept: application/json
"user": {
"active": true,
"email": "john@example.com",
"id": "15",
"roles": [
1,
2,
3,
6,
17,
21,
22
**Example Response**:
.. sourcecode:: http
HTTP/1.1 200 OK
Vary: Accept
Content-Type: application/json
:statuscode 200: no error
:statuscode 401: Authentication Error. Please Login.
:statuscode 403: Cannot modify own user account.
:statuscode 404: User entry with the given ID not found.'

def put(self, user_id):

    self.reqparse.add_argument('id', required=True, location='json', type=int)
    self.reqparse.add_argument('email', required=True, location='json', type=unicode)
    self.reqparse.add_argument('active', required=True, location='json', type=bool)
    self.reqparse.add_argument('role_id', required=True, location='json', type=str)
    args = self.reqparse.parse_args()
    if (user_id != args['id']):
        return ({'status': 'User    ID    cannot    be    modified.'}, 403)
    if (user_id == current_user.id):
        return ({'status': 'Cannot    modify    own    user    account.'}, 403)
    email = args.get('email')
    active = args.get('active')
    role_id = args.get('role_id')
    user = User.query.filter((User.id == user_id)).first()
    if (not user):
        return ({'status': 'User    entry    with    the    given    ID    not    found.'}, 404)
    user.active = active
    if (role_id in RBACRole.roles):
        user.role = role_id
    else:
        return ({'status': 'Specified    Role    not    found.'}, 404)
    db.session.add(user)
    db.session.commit()
    return_dict = {'auth': self.auth_dict}
    return (return_dict, 202)
