Update User Email
Hello,
For v1 there is an API :
PUT:
https://$CUSTOM-DOMAIN/management/v1/users/:userId/email
https://zitadel.com/docs/apis/resources/mgmt/management-service-update-human-email
This allows you to verify the email address without passing in the code, and also allows you to pass in the same email address.
Although this is deprecated.
In my scenario , the user receives an Organization invite link and once he accepts the invite I would like the user's email to be verified instead of triggering another email with email verification code , since the invite email was accepted which by default should make sense to have the email verified.
For v2...
POST:
https://$CUSTOM-DOMAIN/v2/users/:userId/email
https://zitadel.com/docs/apis/resources/user_service_v2/user-service-set-email
With respect to my use case, if I just want to make the user email verfieid this endpoint does not let me do that as it expects the email to be updated.
For example , if I pass in the same email and isVerified: true, it throws error:
Is there a way to verify the user email address without using the verification code?
For v1 there is an API :
PUT:
https://$CUSTOM-DOMAIN/management/v1/users/:userId/email
https://zitadel.com/docs/apis/resources/mgmt/management-service-update-human-email
This allows you to verify the email address without passing in the code, and also allows you to pass in the same email address.
Although this is deprecated.
In my scenario , the user receives an Organization invite link and once he accepts the invite I would like the user's email to be verified instead of triggering another email with email verification code , since the invite email was accepted which by default should make sense to have the email verified.
For v2...
POST:
https://$CUSTOM-DOMAIN/v2/users/:userId/email
https://zitadel.com/docs/apis/resources/user_service_v2/user-service-set-email
With respect to my use case, if I just want to make the user email verfieid this endpoint does not let me do that as it expects the email to be updated.
For example , if I pass in the same email and isVerified: true, it throws error:
Is there a way to verify the user email address without using the verification code?
Change the email address of a user. If the state is set to not verified, the user will get a verification email.

Change the email address of a user. If the state is set to not verified, a verification code will be generated, which can be either returned or sent to the user by email..

