Hello! I still ned help with my issue guys <https...
# ask-a-descoper
r
m
@Bhagwanta Yeole @Rahul Rijhwani can you follow up here
👀 1
b
Okay, let me check
Hello @Rustam Alekpierov Checked the docs but , right now not sure how to add the tenant details Below is the link you can refer for the import users for json format https://docs.descope.com/migrate/custom/user-format-json
r
Thats why im asking for help!) If there is some options to add tenant+role using json import or not?
m
Looping @Doron Sharon Might need to open a feature request for it
d
Do you import via the descope console UI or via the sdk/api?
r
UI
d
Please try the following format:
Copy code
...
"tenants": ["some-tenant-id"],
"authorization": {
  "rolesMT": {
     "some-tenant-id": [{ "id": "role-id" }]
   }
...
r
Did not work
d
Can you send the full json? (Of a single user)
Sorry I had a typo, should be like that:
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
  }
]
image.png
b
@Rustam Alekpierov Did you tried with this one?
r
i tried but it does not work for me for some reasons here is my json { "identifier": "example, "email": "example", "verifiedEmail": true, "verifiedPhone": false, "tenants": ["dev"], "authorization": { "rolesMT": { "dev": { "roles": [{ "id": "ROL39cynZj0du1rCxf7AilhOXGWLBB" }] } } }, "status": "enabled", "test": false },
b
You need to add the tenant id instead of name
r
image.png
or i should found "another" ID for it somewhere?
b
In my case its like this
Screenshot 2026-02-16 at 1.12.20 PM.png
@Rustam Alekpierov Can you please check on tenant section? Is it looks like this?
Screenshot 2026-02-16 at 1.13.17 PM.png
r
image.png
its a custom_id
b
Okay, let me check
2153 partyblobcatparrot 1
It should get added
Can you please share the project id?
@Rustam Alekpierov
Can you try to hit again?
Will check the logs
r
sure 1 sec
done
d
We can have a short zoom
To go over that
r
we can do it in 10 mins
d
Ok, ping me. And make sure to have a valid email in the email field
👍 1
If you can try that:
Copy code
[
  {
    "identifier": "example@descope.com",
    "displayName": "Test User",
    "email": "example@descope.com",
    "phoneNumber": "+14151234567",
    "verifiedEmail": true,
    "verifiedPhone": false,
    "tenants": ["dev"],
    "authorization": {
      "rolesMT": {
        "dev": {
          "roles": [{ "id": "REPLACE-ROLE-ID" }]
        }
      }
    },
    "status": "enabled",
    "test": false
  }
]
And just replace “REPLACE-ROLE-ID” with your role id
r
my fault i used ur roleID....... it worked for me thank you for the help!
👍 2
d
Great!
❤️ 1