When I create user using API, zammad sent user_invite email not signup

Infos:

  • Used Zammad version: 6.0.0-1689342785.e8796845.focal
  • Used Zammad installation type: package
  • Operating system: Ubuntu 20.04.6 LTS
  • Browser + version: Chrome Version 117.0.5938.88 (Official Build) (64-bit)

Expected behavior:

  • When I create user using API, system should send signup email.
    I create a user using API with password setting, I expect zammad send signup email for user, because I already set password on API. I try to set ‘invite’ field false, but it’s not working.

Actual behavior:

  • Zammand send user_invite email, not signup.
    The user_invite email is for users who haven’t set a password yet, but in my case I already set a user password upon user creation with the API. The user_invite email contains a password reset link, so users will find this mail very confusing.

Steps to reproduce the behavior:

  • create user with password using API.

Without payloads you’re sending nobody will be able to help you. Include the endpoint as well please.

API endpoint: https://…/api/v1/users
payload:

{
"id":null,
"firstname":"test user",
"lastname":"",
"email":"code99dotnet@naver.com",
"login":"code99dotnet@naver.com",
"password":"111222",
"invite":null,
"signup":true,
"roles":["Customer"]
}

Providing attributes with null value is not needed. You were close though.
Please consider not setting known passwords via API, let your user pick the password on their own.

POST: https://…/api/v1/users

{
"firstname":"test user",
"lastname":"",
"email":"customer@example.com",
"login":"customer@example.com",
"invite":true,
"roles":["Customer"]
}

Thanks for your reply,

When a user registers on the zammad homepage, they set email, password and register. When the user registers, a user registration confirmation email is sent to the user. I want to do the same with the API. Is there any way?

Yes.
I actually told you already. No need to set a password as well. Let the user set it.

This topic was automatically closed 360 days after the last reply. New replies are no longer allowed.