Git Product home page Git Product logo

Comments (9)

owenr88 avatar owenr88 commented on September 25, 2024

Hey @rocker1058, thanks for raising the issue.

Can I ask a quick question - do any of your users have a value in the custom:client attribute?

I'm just about to deploy a new version which I'm hoping resolves this.

from cognito-migrator.

rocker1058 avatar rocker1058 commented on September 25, 2024

Hey @rocker1058, thanks for raising the issue.

Can I ask a quick question - do any of your users have a value in the custom:client attribute?

I'm just about to deploy a new version which I'm hoping resolves this.

yes, there are some users who have it, others who don't, this is an example of the attribute

custom:clients: [{"id":12923,"identificationNumber":"860828282","name":"3M COB."}]

I get this error:

Extracted custom attributes: custom:databaseUserId,custom:roles,custom:clients
Found user pool
[
{
"code": "invalid_type",
"expected": "string",
"received": "undefined",
"path": [
"custom:clients"
],
"message": "Required"
}
]
No users found

from cognito-migrator.

owenr88 avatar owenr88 commented on September 25, 2024

@rocker1058 can you try the latest release please (1.2.10)? That should resolve this and hopefully the original issue too :)

from cognito-migrator.

owenr88 avatar owenr88 commented on September 25, 2024

Actually, I don't think that will work either. Pushing a new version now!

from cognito-migrator.

owenr88 avatar owenr88 commented on September 25, 2024

Alright, give that a go! 1.2.11 should work now

from cognito-migrator.

rocker1058 avatar rocker1058 commented on September 25, 2024

Alright, give that a go! 1.2.11 should work now

The export works correctly with the custom attributes, but I got another error when importing.

The job says it failed because many users had an error:

[FAILED] Line Number 2 - Username should be an email ..
[FAILED] Line Number 3 - Username should be an email ..

This same thing happens for 50 users.

but it seems strange to me that you request that, I'm also going to ask aws support to get a response from them

from cognito-migrator.

owenr88 avatar owenr88 commented on September 25, 2024

[FAILED] Line Number 2 - Username should be an email ..
[FAILED] Line Number 3 - Username should be an email ..

I think that's a Cognito thing - the importer is only verifying that the fields are strings. I'm guessing there's a settings in the User Pool config.

from cognito-migrator.

owenr88 avatar owenr88 commented on September 25, 2024

It's worth saying that the exporter is setting "cognito:username": user.Username when exporting. I wonder if that needs to change depending on how the user pool is configured.

Do you have IDs in your Username field or email addresses?

In the docs it states:

The cognito:username field is required and must be unique within your user pool. It can be any Unicode string. However, it cannot contain spaces or tabs.

from cognito-migrator.

rocker1058 avatar rocker1058 commented on September 25, 2024

It's worth saying that the exporter is setting "cognito:username": user.Username when exporting. I wonder if that needs to change depending on how the user pool is configured.

Do you have IDs in your Username field or email addresses?

In the docs it states:

The cognito:username field is required and must be unique within your user pool. It can be any Unicode string. However, it cannot contain spaces or tabs.

I have ids

cognito:username: 04789468-f071-70c1-99e0-fdc60e0c6b57,

the email is only in the field "email"

imagen

from cognito-migrator.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.