def METHOD_NAME():
    """Return logged in user."""
    deposit_groups = get_user_deposit_groups()
    profile = UserProfile.get_by_userid(current_user.id)
    extra_data = profile.extra_data if profile else {}
    cern_profile = get_remote_account_by_id(current_user.id)['profile']
    if cern_profile:
        extra_data['cern'] = cern_profile
    _user = {
        "id": current_user.id,
        "email": current_user.email,
        "deposit_groups": deposit_groups,
        "profile": extra_data,
        "roles": get_user_ui_roles(),
    }
    response = jsonify(_user)
    response.status_code = 200
    return response