I see that SharePoint is exposing below CSOM Methods.

Web.LoadAndInstallApp method - Uploads and installs an app package to this site •Web.LoadAndInstallAppInSpecifiedLocale method - Uploads and installs an App package, in a specified locale

Web.LoadApp method - Uploads an App package and creates an instance from it.

I tried to add a provider hosted app through above Web.LoadAndInstallApp method. It gets installed but the Client Id and Client Secret registration is not happening. Can we perform app registration through CSOM?

Please advise.


As of now we cannot as there is no CSOM or Sharepoint online powershell commands for it.I am trying to a post with variables from the code using HttpWebRequest.

  • That begs the question, how come Visual Studio is able to do this? When deploying from Visual Studio, it does request and register a new App Id. Try having Fiddler running when hitting F5 in Visual Studio with your SharePoint App loaded and see what it calls out to. – Koen Zomers Jan 13 '15 at 17:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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