Anyone know about importing users into Ory? Using ...
# talk-kratos
f
Anyone know about importing users into Ory? Using the JS client @ory/client v1.2.5 and calling identityApi.batchPatchIdentities() which calls this api endpoint (https://www.ory.sh/docs/kratos/reference/api#tag/identity/operation/batchPatchIdentities) a PATCH call to /admin/identities Getting an error that makes it seem like importing users in bulk is not supported at all, I have way too many users to do one at a time. Any insights?
Copy code
response: {
  status: 405,
  statusText: 'Method Not Allowed',
  headers: {
    allow: 'GET, OPTIONS, POST',
    'content-type': 'text/plain; charset=utf-8',
    vary: 'Origin, Cookie',
    'x-content-type-options': 'nosniff',
    date: 'Mon, 16 Oct 2023 20:09:43 GMT',
    'content-length': '19',
    connection: 'close'
   },
r
f
ended up being that I was using the public endpoint instead of admin endpoint in our self hosted setup. The error is a bit misleading, but it was my mistake 🤦