# Why is the "Created by" always "Administrator" when I add records with API token?

**URL:** <https://forum.kintone.dev/t/why-is-the-created-by-always-administrator-when-i-add-records-with-api-token/1745>\
**Category:** General\
**Created:** [November 4, 2026, 12:40am UTC](https://forum.kintone.dev/t/why-is-the-created-by-always-administrator-when-i-add-records-with-api-token/1745 "2026-11-04T00:40:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kokonuts](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/kokonuts/32/1017_2.png) [@kokonuts](https://forum.kintone.dev/u/kokonuts)\
**Post date:** [November 4, 2026, 12:40am UTC](https://forum.kintone.dev/t/why-is-the-created-by-always-administrator-when-i-add-records-with-api-token/1745/1 "2026-11-04T00:40:36Z")

</div>

■ Question / Problem

I am adding records to a kintone app from my python program using REST API with API token authentication.The records are created, but the "Created by" (and "Updated by") always shows the user "Administrator".  
But it works well when I use my js customization update records without API token in other kintone app.  
Is this always the case when I use API tokens?And I want to know if this is something that can be changed or not.

■ Code/Attempts

Here is my python code.👇

```javascript
import requests

def add_record(name):
    url = "https://{mysubdomain}.kintone.com/k/v1/record.json"
    headers = {
        "X-Cybozu-API-Token": "{myAPItoken}",
        "Content-Type": "application/json"
    }
    payload = {
        "app": 1,
        "record": {
            "name": {"value": name}
        }
    }
    response = requests.post(url, headers=headers, json=payload)
    return response.json()
add_record("Alex")

```

Here is my JS code.👇

```javascript
(() => {

  'use strict';
  const FIELD_CODE = 'User_selection';

  const EVENTS = ['app.record.create.submit.success','app.record.edit.submit.success'];
// ================

  kintone.events.on(EVENTS, async (event) => {
     const srcRecord = event.record;
     const field = {
      type: 'USER_SELECT',
      value: [{ code: srcRecord.Updated_by.value.code }],
  };

  try {
    await kintone.api(kintone.api.url('/k/v1/record.json', true), 'PUT', {
        app: event.appId,
        id: event.recordId,
        record: {
          [FIELD_CODE]: field,
        },
      });
    } catch (error) {
      console.error(error);
    }
  return event;
  });
})();

```

---

<div class="post-metadata">

**Author:** ![Chris](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/chris/32/44_2.png) [@Chris](https://forum.kintone.dev/u/Chris)\
**Post date:** [November 4, 2026, 6:13pm UTC](https://forum.kintone.dev/t/why-is-the-created-by-always-administrator-when-i-add-records-with-api-token/1745/2 "2026-11-04T18:13:50Z")

</div>

Hello @kokonuts

Regarding your question, this is the expected behavior when using API token authentication.

According to the official Kintone documentation, REST API operations performed using API tokens are recorded as operations by **Administrator**. This explains why the Created by and Updated by fields display Administrator when you add records using your Python code.

You can find this behavior documented here:

> **[Authentication](https://kintone.dev/en/docs/common/authentication/)**
>
> Documents for Password authentication and API token authentication for your REST API requests.

However, it is possible to specify a different user for the **Created by** and **Updated by** fields when adding records through the REST API, even when using API token authentication.

To do so, you would need to include these fields in your request body and specify the appropriate Kintone user's login name.

For example, you could modify the `record` portion of your code as follows:

```javascript
"record": {
    "name": {"value": name},
    "Created_by": {
        "value": {"code": "your_login_name"}
    },
    "Updated_by": {
        "value": {"code": "your_login_name"}
    }
}

```

Please note the API token must have **Add records** and **Manage App** permissions to specify these values.

I have also tested this behavior in a test environment and confirmed that specifying these fields successfully assigns the designated user instead of Administrator.

For more details, please refer to the official Add Record API documentation:

> **[Add Record](https://kintone.dev/en/docs/kintone/rest-api/records/add-record/)**
>
> Adds 1 record to an App.

Please also note that the Created by and Updated by fields can only be explicitly specified when adding a record. They cannot be directly modified afterward through the Update Record API.

> **[Update Record](https://kintone.dev/en/docs/kintone/rest-api/records/update-record/)**
>
> Updates details of 1 record in an App by specifying its record number, or a different unique key.

I hope this helps!

---

<div class="post-metadata">

**Author:** ![williamwright](https://avatars.discourse-cdn.com/v4/letter/w/3e96dc/32.png) [@williamwright](https://forum.kintone.dev/u/williamwright)\
**Post date:** [November 12, 2026, 7:44pm UTC](https://forum.kintone.dev/t/why-is-the-created-by-always-administrator-when-i-add-records-with-api-token/1745/3 "2026-11-12T19:44:00Z")

</div>

One clarification: your JS customization isn't actually setting Created by or Updated by. It runs as the logged-in user and copies Updated\_by into a USER\_SELECT field, so the real audit fields still reflect that user. With API token auth, the actor is Administrator by design. If you pass Created\_by/Updated\_by in the add-record payload, use login names (not display names) and ensure the token has Manage App; otherwise the request can fail. Set these on creation rather than relying on the JS workaround.

---

<div class="post-metadata">

**Author:** ![kokonuts](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/kokonuts/32/1017_2.png) [@kokonuts](https://forum.kintone.dev/u/kokonuts)\
**Post date:** [November 20, 2026, 5:35am UTC](https://forum.kintone.dev/t/why-is-the-created-by-always-administrator-when-i-add-records-with-api-token/1745/4 "2026-11-20T05:35:50Z")

</div>

I see, so when the “Created by” and “Updated by” fields are specified in the REST API, those values take priority.  
I’m glad to know this is expected behavior. Thank you for your answer!

---

<div class="post-metadata">

**Author:** ![kokonuts](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/kokonuts/32/1017_2.png) [@kokonuts](https://forum.kintone.dev/u/kokonuts)\
**Post date:** [November 20, 2026, 5:40am UTC](https://forum.kintone.dev/t/why-is-the-created-by-always-administrator-when-i-add-records-with-api-token/1745/5 "2026-11-20T05:40:47Z")

</div>

Oh..., I didn’t plan to do any complex app management tasks firstly, so I didn’t give it Manage App permissions. I’ll check the permissions.  
Sorry for the beginner question, but why is the Manage App permissions needed?
