authentik icon indicating copy to clipboard operation
authentik copied to clipboard

Send welcome mail to newly created users

Open samuel-p opened this issue 3 years ago • 5 comments

Is your feature request related to a problem? Please describe. I have to inform newly created users manually about their account.

Describe the solution you'd like It would be awesome to have the option to notify newly created users about their new authentik account, by sending them a welcome mail, like other tools (e.g. Nexcloud) do. Maybe this is already possible but I missed it.

samuel-p avatar Apr 22 '22 19:04 samuel-p

You can make use of webhooks, I suppose https://goauthentik.io/docs/events/transports#generic-webhook

rizwan95 avatar Apr 23 '22 08:04 rizwan95

@samuel-p Yes, you can.

  1. You need to create the notification transportation for the webhook type
  2. Next you need to create the notification rule that uses created notification transportation (Whenever policy matches, event created).
  3. Next create the event matcher policy for user write.
  4. Next bind the above-created policy to the notification rule.

Bhautik0110 avatar Aug 24 '22 05:08 Bhautik0110

@samuel-p Yes, you can.

  1. You need to create the notification transportation for the webhook type
  2. Next you need to create the notification rule that uses created notification transportation (Whenever policy matches, event created).
  3. Next create the event matcher policy for user write.
  4. Next bind the above-created policy to the notification rule.

How would I configure this to only send an email to hat that newly created user though? I can only seem to select groups, wouldn't everyone in that group then be notified any time there's a user write?

Also isn't simply resetting a password also a user write? There'd be a notification for that too

Avsynthe avatar Nov 26 '22 00:11 Avsynthe

@Avsynthe I think the easiest solution to this is to create a custom email template and use it in an email stage at the end of your user enrollment, after the user_write stage

Lanhild avatar Jan 23 '23 16:01 Lanhild