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?
Just so we have them … here’s the instructions on how to do the User bits in Powershell :
1. Connect Windows PowerShell to the Service
onlinehelp.microsoft.com/…/2b09b6a8-ad7e-446f-b7f0-273856beed70
2. After connecting to your Office 365 service, run the following command to get the accountskuID:
Get-MsolAccountSku
3. Run this command to create a new user and assign the user license:
New-MsolUser -DisplayName “testuser” –UserPrincipalName testuser@yourdomain.com –UsageLocation “US” | Set-MsolUserLicense -AddLicenses “tenantname:ENTERPRISEPACK”
Note: Change the “tenantname:ENTERPRISEPACK” to be your “accountskuID” and change the “US” to be your country code. UsageLocation is the two letter standard country code, for example US, DE, BE, GB.
Copied from here : http://community.office365.com/en-us/forums/148/t/83120.aspx