Email Verified
# support
g
We’re currently trying to modify the emailVerified field, but it seems like this can only be changed at the server level. Our current workflow requires users to verify their email after signing up. We’d like to have a bot send a URL to users, allowing them to verify their email (not set password again), and upon successful verification, update the emailVerified field to true. Does anyone have suggestions on the best way to implement this? Any guidance would be appreciated!
How to make UserSecurityRequest type as verify-email? Is there any endpoint to specify that. Alternateive I using bot and give the admin permisson and When I create UserSecurityRequest I got error: 2025-02-05T17:17:49.858Z 3749ec24-0916-4cfe-bc4e-c47a39b79fec INFO User 0194d6e2-5d76-7616-b30f-08ae09e1baf3 has unverified email. Creating UserSecurityRequest for verification. 2025-02-05T17:17:49.873Z 3749ec24-0916-4cfe-bc4e-c47a39b79fec INFO Unhandled error: Forbidden Error: Forbidden at Ot.request (/opt/nodejs/node_modules/@medplum/core/dist/cjs/index.cjs:43:10023) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Object.handler (/var/task/user.js:14:9) at async exports.handler (/var/task/index.js:24:18) 2025-02-05T17:17:49.873Z 3749ec24-0916-4cfe-bc4e-c47a39b79fec ERROR Invoke Error {"errorType":"Error","errorMessage":"Forbidden","outcome":{"resourceType":"OperationOutcome","id":"forbidden","issue":[{"severity":"error","code":"forbidden","details":{"text":"Forbidden"}}],"extension":[{"url":"https://medplum.com/fhir/StructureDefinition/tracing","extension":[{"url":"requestId","valueId":"19d2b1df-1587-4f9e-bec6-450620d4d840"},{"url":"traceId","valueId":"1-67a39d3d-3829ed082b040d8c2008ddc2"}]}]},"stack":["Error: Forbidden"," at Ot.request (/opt/nodejs/node_modules/@medplum/core/dist/cjs/index.cjs:43:10023)"," at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"," at async Object.handler (/var/task/user.js:14:9)"," at async exports.handler (/var/task/index.js:24:18)"]}
180 Views