Skip to main content
Share Your Experience: Take the 2024 Developer Survey
12 votes
Accepted

Web Application and Site Collection

Let's imagine there is no web application to create the site collection, and you will create the site collection directly without creating a web application, In this case, Every site collection ...
Mohamed El-Qassas MVP's user avatar
8 votes

CSOM - Get root site collection URL

CSOM Using the ClientContext, get your Site object and check its URL SPContext.Current.Site.ServerRelativeUrl : if == "/" JSOM For that you can use the _spPageContextInfo variable. To check if ...
JayHell's user avatar
  • 1,478
8 votes
Accepted

How to change database for existing site collection in a sharepoint web application?

For this process to work, the following must be true The destination content database must already exist. The source content database and destination content database must be located on the same ...
Rajesh Joshi's user avatar
  • 1,344
8 votes
Accepted

Deleted Site Collection is still visible in View All Site Collection in Centeral Administration

When a site collection is deleted from GUI, the deleted site collection is stored in the SPDeletedSite object to be able to restore it back within 30 days using Restore-SPDeletedSite cmdlet. So to ...
Mohamed El-Qassas MVP's user avatar
7 votes

best appraoch to modify a site collection url inside sharepoint 2013

Source: http://www.sharepointrelated.com/2015/03/30/change-site-collection-url-sharepoint/ $site = Get-SPSite http://servername/customer/questions $site.Rename("http://servername/customer/...
Juan Pablo Pussacq Laborde's user avatar
6 votes
Accepted

Rest API to get SharePoint site collection all users

The REST Endpoint URI to get all the users of a Site Collection is <site url>/_api/Web/SiteUsers
Nagarajan Muthukumar's user avatar
6 votes

Sharepoint 2013 - List of Site Collection Administrator (JavaScript)

Users are not allowed to enumerate 'higher' permissions. So have your script (which only has to run when administrators havechanged) dump the info into a public List (or formatted HTML file)
Danny '365CSI' Engelman's user avatar
6 votes
Accepted

Cannot get all site collection users using CSOM

Every site collection has its own user database. It's basically just a list at ~sitecollection/_catalogs/users. The Web.SiteUsers collection will only return users who have actually visited the site ...
Lars Fastrup's user avatar
  • 3,140
6 votes
Accepted

Site Collection Administrator has left the building

Ok Paul, you will need help from Share-point admins (someone with server access to the Sharepoint farm). You need someone with SharePoint admin privilege to open Central Administration and update the ...
Marek Sarad's user avatar
  • 3,540
5 votes

Sharepoint Online - Maximum number of subsites within single site collection

I tried contacting Microsoft for the same requirement but I found this question is already answered by Microsoft support team. The reply from Microsoft Team was like Currently, the sub site limit ...
Aakash Maurya's user avatar
5 votes

Modify SharePoint Online Site Collection URL

Short answer, no, not possible a without migration of some sort.
Eric Alexander's user avatar
5 votes
Accepted

How to get list of available custom template name using powershell script

I have answered for the same kind of query , Please find below the detail to get the available custom templates and create a sub-site based on that . This can be achieved using power shell and CSOM ...
Esaki's user avatar
  • 1,272
5 votes
Accepted

Sharepoint 2013 - List of Site Collection Administrator (JavaScript)

It is possible to list all administrators of a site collection using JavaScript(REST API). UserInformationList has the all users information of your site. You can get administrators using $filter. ...
Atish Kumar Dipongkor's user avatar
5 votes
Accepted

Custom URL for sharepoint Online

What @bonm014 said is true: it's not possible. The Microsoft's User Voice channel is the source for requested features and their status. Changing the tenant's name is one of the often requested ...
moe's user avatar
  • 5,267
5 votes
Accepted

Main site collection checked out to a user?

The site collection is not checked out. It is not possible to check out a site collection. What has happened is that the file Home.aspx in the SitePages library is checked out. Anyone with contribute ...
Frank H's user avatar
  • 340
5 votes

What is the effect of granting users "Restricted Interfaces for Translation" permsion on a site

I use that 'restricted interfaces for translation' when I have people who have contribute rights to a list in a site, but don't have any rights to the site itself. In 2010, giving a person contribute ...
Robin in Or's user avatar
  • 2,071
5 votes
Accepted

Prevent Site Collection Administrator from viewing library documents

Their is no way to block site collection administrators from viewing anything on that site collection. You have to think different strategy i.e. enabling auditing so that who ever access that ...
Waqas Sarwar MVP's user avatar
  • 56.8k
5 votes
Accepted

Site Collection Vs Hubsite

Actually, the Hub site is considered a top-level site collection for other site collections to serves the flat structure, unlike the old Site collection and its subsites structure! the Hub site has ...
Mohamed El-Qassas MVP's user avatar
5 votes
Accepted

Create site collection in content database

I don't think it's possible automatically. Unfortunately, There is no event receiver triggered when creating/ created a site collection to handle this using event receiver. However, you can adjust ...
Mohamed El-Qassas MVP's user avatar
5 votes

SPFX and pnp/sp : How to get all sites

Using @pnp/sp framework, you can get the list of all site collections as below: Add the below import statement: import { sp, SearchQuery, SearchResults} from "@pnp/sp"; After that, ...
Gautam Sheth's user avatar
  • 30.9k
4 votes

Sharepoint Online - Maximum number of subsites within single site collection

I think 2000 subsite per site collection is just a threshold value. There will be impact on performance if your subsite count is more than 2000. Thats why Microsoft recommends upto 2000 subsites ...
Amit Kotha's user avatar
  • 2,157
4 votes

how to get site collection url from SharePoint Hosted App

In your App url there are various Query String Parameters as shown here. That already containts the site collection url. The Query String paramter "SPHostUrl" will give you the site collection URl. ...
Aakash Maurya's user avatar
4 votes
Accepted

Programmatically move site to another site collection

You could try using Export-SPWeb and Import-SPWeb w/ PowerShell. These commands have parameters for including security and versions. I think you generally need to create a new subsite at the ...
Jordan's user avatar
  • 334
4 votes

Sharepoint online how to get site logo url in Javascript?

Site logo url is exposed using the method get_siteLogoUrl(). Try the below code: var hostUrl = GetUrlKeyValue("SPHostUrl"); var context = new SP.ClientContext.get_current(); var hostcontext = new SP....
Unnie's user avatar
  • 8,819
4 votes

How to get list of available custom template name using powershell script

This should help $web = get-spweb http://intranet $template = $web.GetAvailableWebTemplates(1033) To create a new subsite, based off of a custom web template, you can use the following script $...
Monica Jagani's user avatar
4 votes

Accessing Office 365 site collection without microsoft login: Access site anonymously

Public SharePoint Online websites that allow for custom domains are no longer supported. You'll need to host something somewhere else. See the exhaustive guidance here, https://support.microsoft.com/...
Eric Alexander's user avatar
4 votes

Cannot get all site collection users using CSOM

In People Picker, All users are coming from AD whichever selected during User Profile Synchronization Connection. In CSOM code, "var users = context.Web.SiteUsers;" User are coming which are added in ...
Samir Khimani's user avatar
4 votes
Accepted

what is the Sites on the base site collection of SharePoint online?

Sites/ is a Wildcard Managed Paths which specify that one or more site collections exist at a specified path! There are two types of managed paths that you can create: A wildcard inclusion allows ...
Mohamed El-Qassas MVP's user avatar
4 votes

How to add a picture library to a communication site

Few list templates are not available in communication site template. You can enable 'Team Collaboration Lists' in site features to get the picture library templates installed. Navigate to the https://...
sssreddy's user avatar
  • 4,473

Only top scored, non community-wiki answers of a minimum length are eligible