O365, I have some existing site collections. I am building some custom logic. I would like to enable external access for some site collections in CSOM. Is this possible?
121296
We have a scenario on which we are creating site collections from a provider-hosted app. Some of these site collections will be used by external users. Is there a way from CSOM (server-side) to enable external sharing on the site collection? I haven't found any resources stating whether this is or not doable.  I'm trying to replicate the settings you can specify at the site collections page on the tenant admin site:    Thanks!
81389
How do I set content permission so that specific content types become visible/usable to the admin user only, while other content types may be visible by other user roles?  After I added new content types, I checked the rebuild permissions.   Content access is working fine but the problem seems to be the fact that the enw content types aren't made visible / accessible to the other roles...
122262
We have SharePoint 2013 Environment License E1 with P2 and need assistance of below question  1) In our application, we want to provide access to External users they don't have license, Is it possible In SharePoint Online?  It would be really good if anyone provide any pointers/suggestions on this
12427
I have two document libraries on the same web, and am wanting to move the files from one to the other using JSOM/CSOM.  Can anyone please shed some light on how to do this?  Thanks
71152
For some security reasons on one of our farm level solutions, we need to limit some actions using Event Receiver-FileMoving event. However, as known, event receivers can be deployed only by Site or SiteCollection level features. Since the solution that provides the main functionality is on farm scope, we need to be able to apply this event receiver to each and every document library there is.  I thought of creating a site level feature for the event receiver, and then enable it on all sites via FeatureActivated event of the farm scoped feature. But it doesn't cover new sites being added after the feature is activated. And since there is no setting for Site level features to "default enable", it doesn't work.  Then I found out  event, where I can enable the feature as soon as it's added. But, from what I understand, it's also site(SPWeb) scoped, so new web applications and site collections are not covered.  So, any ideas how I can make a farm scoped solution to deploy FileMoving event throughout the farm?  Sharepoint 2010/2013 Enterprise edition
88750
I'm using the SharePoint 2013 of the new office 365, and I'm experiencing some troubles to grant access to the anonymous users to the website.  I want to make the SharePoint site public like if it was a public facing website.  I've tried Site permissions under site settings but the option in the ribbon is missing.  I want the two SharePoint sites bellow behaving the same way without the login window.     Does anyone know how to activate anonymous access?  Thanks in advance
32106
How to get all the pages inside a site? I will pass the parameter of a site in a site collection example: http://www.category.com/en,using powershell code in sharepoint server 2013.  when i  try below command i can not get all sites under a site  Get-SPSite  https://xxxx/xx  -Limit All | Get-SPWeb -Limit All | Select -ExpandProperty AllWebs
100834
I have a client account in Google Analytics. The client operates about 30 sites and I want to create a web property for each site under the umbrella central account.   Looks like I cannot add more than 20 web properties under one central account.   Can someone confirm if there's a limit to the amount of web properties you can create under one account?
112216
If I go to SharePoint 2013 site, click on Admin -> SharePoint, you will see a list of site collections (the link is https://somename-admin.sharepoint.com/_layouts/15/online/SiteCollections.aspx)  What is the REST endpoint URL to get this list of site collections ?  I was trying _api/search/query?querytext='contentclass:sts_site' or _api/search/query?querytext='contentclass:sts_web', but it doesn't give the whole list...
41930
I would like to reproduce the "Save site as template" action with the client object model. Can someone give me a hint how to do this?
69174
I am listing all site collections of the company by calling:  /_api/search/query?querytext='contentclass:STS_Site'&amp;trimduplicates=false   Among the returned site collections, some are deleted. When navigating to them in the browser, there shows 404 File not found. And they cannot be seen in both active and deleted site in the new SharePoint admin center.  Is there any way to exclude deleted site collections in the API call? Or is there any way to search for a list of deleted site collections?  Thanks in advance.
92552
I know we need to use Microsoft.SharePoint.Client and Microsoft.SharePoint.Client.Runtime dll's reference in .NET managed CSOM application development. But can someone help me understand why we have to use Microsoft.SharePoint.Client.Runtime and whats it's purpose, in detail. or point me to a reference please. Thank you in advance
118886
I am trying to retrive all items that are under  a certin folder, in a document library.  this is what i have so far  List DocumentsList = clientContext.Web.Lists.GetByTitle(list); CamlQuery camlQuery = new CamlQuery(); camlQuery = new CamlQuery(); camlQuery.ViewXml = @"&lt;View Scope='Recursive'&gt;                         &lt;Query&gt;                             &lt;Where&gt;                                 &lt;eq&gt;                                     &lt;FieldRef Name='FileDirRef'/&gt;                                     &lt;Value Type='Text'&gt;                                         /ecm/Business/Business/Projects/IDECO_P01030000                                     &lt;/Value&gt;                                 &lt;/eq&gt;                             &lt;/Where&gt;                         &lt;/Query&gt;                         &lt;RowLimit Paged='TRUE'&gt; 30 &lt;/RowLimit&gt;                     &lt;/View&gt;"; ListItemCollection listItems = DocumentsList.GetItems(camlQuery); clientContext.Load(listItems); clientContext.ExecuteQuery();   it is definately a caml query problem i am just unsure of how to fix it as yet any ideas would be helpfull
9466
I want to programmatically create a site using custom web templates in sharepoint 2010.  In 2007 I used to get a   SPWebTemplate template = site.GetCustomWebTemplates(LCID)[number];   and used this SPWebTemplate in  SPWeb newSite = web.Webs.Add(url, title, description, LCID, template, true, false);   This worked quite well for 2007. But in 2010 the site templates are saved into the solution store  SPSite.Solutions   which only returns SPUserSolution objects and not SPWebTemplates.  So my question is: How can I programmatically create sites using the site templates from the solution store.    UPDATE: I tried to use  SPWeb newSite = web.Webs.Add(url, title, desc, LCID, templateName, true, false);   where templateName is a string like '{Template-GUID}#TemplateName', but it still does not work. It throws the following error:  Critical error: File or arguments not valid for site template '{4a2d8952-a0af-49a6-8f55-46a59c8d68a2}#CustomerSiteTemplate'. Parameter name: WebTemplate    Any other ideas how to create a site based on a SPWebTemplate?
112616
Do you know how to get, in powershell, all permission for a SPSite/SPWeb and all list?  Thanks.
75981
I want to retrieve all site collections in an Online tenant through Visual Studio:   I can do it via Powershell: get-sposite on-premise server : Get-SPSite on-premise again: var sites = webapp.Sites.Where(i=&gt;i.url.StartsWith(webapp.url + "/departments/"));  http://sharepoint.stackexchange.com/questions/7137/how-can-i-list-the-site-collections-under-a-given-url-path   I can use the following code to iterate through sites within one site collection, so I thought I could try "" but of course it doesn't work, because such site doesn't exist.     "The remote server returned an error: (401) Unauthorized." at context.ExecuteQuery():   ClientContext context = new ClientContext(https://domain.sharepoint.com/sites/);             context.Credentials = new SharePointOnlineCredentials(userName2, password2);              Web site = context.Web;              context.Load(context.Web.Webs);             context.ExecuteQuery();              string allsitecollections = "";              for (int i = 0; i &lt; context.Web.Webs.Count; i++)             {                  allsitecollections = allsitecollections + context.Web.Webs[i].Url + "\n";              }   Is there a way to retrieve the site collections with C# or should I resort to  ?
101256
Does anyone have experience hosting attachments outside of salesforce? I have a customer portal that allows file uploads via an authenticated sites user and it could potentially be a large number of files of substantial size. I've started to look into options like FTP Attachments in the app exchange but it doesn't seem to have an API I could add attachments through via APEX. Google drive does have an API that I'm assuming I could access through the REST API. Has anyone solved this problem before?