def METHOD_NAME(client, headers, running_app, minimal_record, users):
    # Login
    login_user(client, users[0])
    # NOTE: This covers all scenarios of file restriction.
    #       (e.g. restricted record has its files restricted too)
    restricted_files_record = minimal_record
    restricted_files_record["access"]["files"] = "restricted"
    recid = create_record_w_file(client, restricted_files_record, headers)
    # Logout
    logout_user(client)
    return recid