Users is found in a plugin thats why it fails, try this
const user = await strapi.entityService.findOne(
"plugin::users-permissions.user",
ctx.state.user.id,
{
populate: [
"role"
],
}
);```
Users is found in a plugin thats why it fails, try this
const user = await strapi.entityService.findOne(
"plugin::users-permissions.user",
ctx.state.user.id,
{
populate: [
"role"
],
}
);```