# Python SDK import endpoint "file-like object"

**URL:** <https://community.auth0.com/t/python-sdk-import-endpoint-file-like-object/62670>\
**Category:** Get Help\
**Tags:** python\
**Created:** [May 12, 2021, 2:27pm UTC](https://community.auth0.com/t/python-sdk-import-endpoint-file-like-object/62670 "2021-05-12T14:27:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![markd](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/markd/32/38919_2.png) [@markd](https://community.auth0.com/u/markd)\
**Post date:** [May 12, 2021, 2:27pm UTC](https://community.auth0.com/t/python-sdk-import-endpoint-file-like-object/62670/1 "2021-05-12T14:27:13Z")

</div>

Please include the following information in your post:

- **Which SDK this is regarding:** auth0-python
- **SDK Version:** 3.13.0
- **Platform Version:** python 3.9.5

The import endpoint requires a “file-like object”. Does anyone know what that means? Is this just a dictionary formatted per the docs for user import?

```auto
    def import_users(self, connection_id, file_obj, upsert=False, send_completion_email=True, external_id=None):
        """Imports users to a connection from a file.
        Args:
.
.
.
            file_obj (file): A file-like object to upload. The format for
                this file is explained in: https://auth0.com/docs/bulk-import.

```

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [May 12, 2021, 2:50pm UTC](https://community.auth0.com/t/python-sdk-import-endpoint-file-like-object/62670/3 "2021-05-12T14:50:06Z")

</div>

Hi @markd,

The SDK is calling the [POST](https://auth0.com/docs/api/management/v2?_ga=2.246162692.1847387816.1618225160-1595415333.1607347674#!/Jobs/post_users_imports)[/api/v2/jobs/users-imports](https://auth0.com/docs/api/management/v2?_ga=2.246162692.1847387816.1618225160-1595415333.1607347674#!/Jobs/post_users_imports) endpoint in that method and so it’s expecting a JSON file.

[https://auth0.com/docs/users/bulk-user-imports#request-bulk-user-import](https://auth0.com/docs/users/bulk-user-imports#request-bulk-user-import)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [May 27, 2021, 2:51pm UTC](https://community.auth0.com/t/python-sdk-import-endpoint-file-like-object/62670/4 "2021-05-27T14:51:01Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
