Send activation emails to new admin users

System Information
  • Strapi Version: 3.6.8
  • Operating System: Ubuntu 20.04
  • Database: MongoDB
  • Node Version: 14.17.6
  • NPM Version: 6.14.15
  • Yarn Version: 1.22.5

Hello everyone,

We are developing a web app where different users will have access to backend in order to create content. There will be only one super admin, and the rest of the users will be authors.

Our question is, where can we find the actual function that creates admin users to implement the strapi email plugin to send the activation url to the new author?
We want to automate processes as much as we can.

Thank you very much in advance

You can create one yourself.
If you have a Frontend create an endpoint that creates a user with the role of author and emails them. :blush:

1 Like

Hi Eventyret,

It is possible to do as you said. We have just created a new collection named “Autores” (we are doing our app in spanish) and we extended the controller with the service provide by strapi: “strapi.admin.services.user.create()” to create the user with author role, and everything is working fine.

Anyway, we would like the admin to do that process directly from strapi administration panel.

Thank you very much for your answer, as it did help to make a possible workaround that we did not think about, until we find the solution to work directly form administration panel. :smiley: :+1:

1 Like

You can always build a plugin for the admin panel that has the components that does what you want. :slight_smile: If you found it was a solution feel free to hi the solution icon :slight_smile:

1 Like

I think that making a plugin is the best option for now.

Thank you very much again :+1: :+1:

2 Likes

You’re welcome