How to create a new entry on creation with the relation Field

System Information
  • Strapi Version: 4.25.8
  • Operating System: MacOS
  • Database: postgresql for dev and sqlite for test
  • Node Version: v20.16.0
  • NPM Version: 10.8.2
  • Yarn Version: 1.22.22

I have a content type named Recruiter.
That recruiter has a relation one to one to user-permissions.

My goal is when i create candidate, it creates user-permissions first with a specific role (role named client) then get the user id and finally create Recruiter.

Thanks