I think you can modify the collection controller and remove those fields.
https://strapi.io/documentation/developer-docs/latest/concepts/controllers.html#core-controllers
findOne function is like that:
const { sanitizeEntity } = require('strapi-utils');
module.exports = {
/**
* Retrieve a record.
*
* @return {Object}
*/
async findOne(ctx) {
const { id } = ctx.params;
const entity = await strapi.services.restaurant.findOne({ id });
return sanitizeEntity(entity, { model: strapi.models.restaurant });
},
};
Maybe you can get the entity and modify created_by. There may be another, simpler way to do this. But I’m new to Strapi and some things I needed to change the controllers.