Import to Zitadel - 504 Gateway timeout

Dear Team,

I am trying to bulk import users to my application using postman api. When I first tried sending the request to the Postman cloud servers, it mentioned that the request took longer than 30 seconds so it recommended me to use the Desktop Agent. After I have tried that, I get the following error:

The number of users are quite large so it will take a considerable amount of time. Is there a solution to this?

1 Like

Hey @maintenance-pilot-53 :wave:

Thank you for raising this with us.

This is related to the same ongoing issue - please follow this topic for more details.

1 Like

I’ve reopened this topic as at first it related to imports but checking this again after the import issue had been resolved, this related to the Postman API and not imports through the UI.

@maintenance-pilot-53

Could you provide some more details of the request that you’re sending to the Postman API and which endpoints you’re using?

This endpoint is now deprecated:

https://www.postman.com/postman/postman-public-workspace/request/08zriba/import-an-exported-postman-data-dump-file

I am trying to import users into an identity management platform called Zitadel. The request is a call to the import endpoint:
https://$CUSTOM-DOMAIN/admin/v1/import.
The request body contains data in the format:

{
  "timeout": "10m",
  "data_orgs": {
    "orgs": [
      {
        "orgId": "104133391254874632",
        "org": {
          "name": "ACME"
        },
        "humanUsers": [
          {
            "userId": "104133391271651848",
            "user": {
              "userName": "test9@test9",
              "profile": {
                "firstName": "Road",
                "lastName": "Runner",
                "displayName": "Road Runner",
                "preferredLanguage": "de"
              },
              "email": {
                "email": "[email protected]",
                "isEmailVerified": true
              },
              "hashedPassword": {
                "value": "$2a$14$aPbwhMVJSVrRRW2NoM/5.esSJO6o/EIGzGxWiM5SAEZlGqCsr9DAK",
                "algorithm": "bcrypt"
              }
            }
          },
          {
            "userId": "120080115081209416",
            "user": {
              "userName": "testuser",
              "profile": {
                "firstName": "Test",
                "lastName": "User",
                "displayName": "Test User",
                "preferredLanguage": "und"
              },
              "email": {
                "email": "[email protected]",
                "isEmailVerified": true
              },
              "hashedPassword": {
                "value": "$2a$14$785Fcdbpo9rn5L7E21nIAOJvGCPgWFrZhIAIfDonYXzWuZIKRAQkO",
                "algorithm": "bcrypt"
              }
            }
          },
          {
            "userId": "145195347319252359",
            "user": {
              "userName": "wile@test9",
              "profile": {
                "firstName": "Wile E.",
                "lastName": "Coyote",
                "displayName": "Wile E. Coyote",
                "preferredLanguage": "en"
              },
              "email": {
                "email": "[email protected]"
              }
            }
          }
        ]
      }
    ]
  }
}

I have tested this with a few users and it works. But now as I have tried to import 50 actual users, I received the aforementioned error.

So this is a case where you’re trying to import some data into another platform rather than importing Collections/API into Postman?

This feels like it’s more or an issue to raise with Zitadel so they can explain why that might not be working for you, using more data. There could be certain rate limits or request size limits on their service.

Yup that is right I was using postman to make an api call to their end. I will try and raise the issue with them, thank you for your time.

1 Like