In this request, you used
await strapi.plugins['users-permissions'].services.user.add({
What do you use for V4.5.3? I can’t create a user through my controller.
I am trying to create a user through the entity service but it does not allow me to validate even though I can create them.
const password = await strapi.service("admin::auth").hashPassword("testtest");
console.log(password);
let newUser = await strapi.entityService.create(
"plugin::users-permissions.user",
{
data: {
username: Email,
email: Email,
password: password,
confirmed: true,
OrganizationName: OrganizationName,
OrganizationId: organizationId,
TypeOfRegistration: "Admin",
role: userPerm.id,
FullName: Name,
UserId: uuidv4(),
},
}
);