How to use entityService for user

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"
        ],
      }
    );```
2 Likes