Hello! I am trying to import users using JSON I go...
# ask-a-descoper
r
Hello! I am trying to import users using JSON I got Users import successfully message, but they did not appear. What is possible root cause? (I followed guide and re-checked JSON format and it looks fine)
i did like this tenants": [ "test" ], "status": "enabled", "test": false, "customAttributes": { "preferredMfaMethod": "email" }, "authorization": { "roles": [ { "id": "RO................................al" } ] } and i imported user but i added tenant without role and role without tenant like this
b
Hello @Rustam Alekpierov Please follow the below JSON for importing the users
Copy code
[
  {
    "identifier": "<mailto:example@descope.com|example@descope.com>",
    "displayName": "Test User",
    "email": "<mailto:example@descope.com|example@descope.com>",
    "phoneNumber": "+14151234567",
    "verifiedEmail": true,
    "verifiedPhone": false,
    "tenants": ["T39cyqFQlAqUDy3yuVKcl9x4DvL8"],
    "authorization": {
      "rolesMT": {
        "T39cyqFQlAqUDy3yuVKcl9x4DvL8": {
          "roles": [{ "id": "ROL39cynZj0du1rCxf7AilhOXGWLBB" }]
        }
      }
    },
    "status": "enabled",
    "test": false
  }
]