I'm developing a web form, that writes data to a SharePoint online list using this library, reads the entry and uploads attachments. Right now, for testing, I use the login data to my Office 365 account, with access to all other MS Services.

What I need is a user account, that only has read/write permission to selected lists and nothing else.

Is that the right approach? What do I have to look for? (Sorry I'm new to SharePoint/Office365 and I have to do it together with the admin, and I like to know what they have to look for, if that makes sense.

Thank you.

1 Answer 1


I would not recommend using SOAP. Those APIs are ancient and probably deprecated in Microsoft 365. You should use the Microsoft Graph API for creating integrations Microsoft Graph API. If you are looking at scripting, you can use the PnP libraries. Microsoft PnP

If you need to build a web form in Microsoft 365 you should look at using Microsoft Forms, it'll do most everything you need for basic input, upload, and SharePoint integration (you may need Flow/Power Automate).

  • Thanks for your point of view. I'll look into using Microsoft Forms, I think that might be the best option to put all the responsibility onto MS :). I'll also check out their REST API.
    – marcus
    Commented Aug 31, 2022 at 9:33
  • Looks like MS Forms doesn't allow file upload in public forms, only within the organization. But I'm looking at github.com/vgrem/phpSPO that uses the JSON REST API and allows authentication with "app principals (client credentials)" which seems to be better than using username:password.
    – marcus
    Commented Aug 31, 2022 at 15:55
  • That makes sense. Good luck and welcome to the community. Commented Sep 1, 2022 at 15:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.