The created-by-id is only for internal use and it is related to admins, not permission users. Solution is create another field with relation to permissions user
created-by-id