You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to migrate users using /bulk-import/import, the roles specified in the userRoles field are ignored. Additionally, even when isVerified is set to false, the response shows the verified field as true
Issue 1: The roles defined in the userRoles field are ignored during migration via /bulk-import/import.
Issue 2: The isVerified field is set to false in the request, but the response returns verified: true.
Hi.
For the first issue, I beleive the problem is with your input. Based on your example, you are telling the migration to add the role user on the empty tenant. If you wish to add the role on the public tenant, then you should specify that.
For the second issue, you are right. At first, it was an intentional choice of verifying all emails and the issue was that the isVerified field was even present in the input, but after another round of internal discussions we decided to use that field's value. You can follow the PR's life here: isVerified PR
Hi.
You're right - when I specified the tenant as public, it worked. However, the specification states that I can simply pass an empty array if I'm not using multi-tenancy.
🐛 Bug Report
When attempting to migrate users using /bulk-import/import, the roles specified in the userRoles field are ignored. Additionally, even when isVerified is set to false, the response shows the verified field as true
userRoles
field are ignored during migration via /bulk-import/import.isVerified
field is set to false in the request, but the response returnsverified: true
.Example request:
Response:
{"status":"OK","user":{"id":"test-external-id","isPrimaryUser":false,"tenantIds":["public"],"timeJoined":1551367594480,"emails":["[email protected]"],"phoneNumbers":[],"thirdParty":[],"webauthn":{"credentialIds":[]},"loginMethods":[{"tenantIds":["public"],"recipeUserId":"test-external-id","verified":true,"timeJoined":1551367594480,"recipeId":"emailpassword","email":"[email protected]"}]}}
Useful informations
I'm using latest supertokens-docker-mysql image. I don't use multi-tenancy. Role user is already defined.
The text was updated successfully, but these errors were encountered: