How to get "createdBy" and "updatedBy" in returned data?

If you are using strapi v4, you can add this to your url when calling the service to populate all properties

?populate=%2A