My scenario is i have to create a new company(document library) and each company has different users each having specific permissions.
NOTE: when creating a new company,we have a directors field and an accountant field,when submitting the form each of these users should get a different permissions to access files automatically.
NOW,In each company(document library) i need to create some document sets based on the company type AUTOMATICALLY when i submit the form. Found that a custom form can be created via infopath,which later found is going to be deprecated i wanted to know how to proceed as i am still a beginner,i had some look at csom and webhook but unfortunately webhook is not the best approach as far i could guess.