A user fills a form in a spfx webpart. Correspondingly I have to create an item in a list for this Metadata. What I would like to do is achieve this, but restrict the user from directly accessing/modifying items within the same list. But in client side web parts, code is able to do what user is able to do. Any suggestions how I could achieve impersonation and modify the list without providing user with the access to the list?
Check Use only client-side code part.