Hello
Can I create a web service that make administration operation like create new user, create site collection, programmatically on SharePoint 2013 Online.
In more detail :Â
i created an application that simulate some sharePoint action like create groups create site colection create library affect credential … using webparts (drang and dropd , js…) to make the task easy for user.
this application is used like dropBox by organization (they create an account , a site collection is created , they create library ….)
the solution was a farmSolution , now we need to deploy it on SP online , and because i can’t do this code using client object model or sandbox solution (due to the limitation) i was thinking that i can create a web service that will excute object model code and then i consum it by client object model web part on SP Online
so the question can i create this web service , because i think that the web service need to be on the same server as Sp , and im using Sp online?
Ok. Found the solution…
Above code works if you change two things:
defaultUserloginName should be defaultUserLoginName (damn you case sensitive JavaScript!)
The username should include the authentication type characters (“i:0#.f|membership|”)