Questions tagged [site-collection]

A site collection is made up of one top-level site and all sites below it.

Filter by
Sorted by
Tagged with
7 votes
5 answers
15k views

What is the REST endpoint URL to get list of site collections?

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 ...
Alex's user avatar
  • 71
1 vote
4 answers
14k views

Retrieve all site collections

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....
grisha's user avatar
  • 2,445
12 votes
3 answers
6k views

Cross Site Collection Navigation

We are using SharePoint for our Intranet. We will have a site collection for the Intranet. Then a site collection for each department in the business. I.E. HR, IT, Finance. We are creating a custom ...
John's user avatar
  • 3,763
11 votes
4 answers
4k views

CurrentUser.IsSiteAdmin should be true but returns false

Why does CurrentUser.IsSiteAdmin return false for a user that is listed in the site collection admin in SharePoint? I am building an Office 365 app that accesses SharePoint via the REST api. During ...
Danny Bullis's user avatar
10 votes
1 answer
14k views

Remove a single user from all site collections in a web application using powershell

Is there a way I can choose to remove a single user from all site collections within a single web application using powershell. There are number of user profiles whose domain account has been blocked ...
ArkoD's user avatar
  • 5,304
3 votes
1 answer
16k views

Copy the Entire SharePoint Online Site Collection to another Office 365 Tenant

I've developed a Site Collection for one client of mine (custom pages, webparts, lists, libraries modified master pages, customized settings, custom people groups, SPD workflows etc.). Now I have ...
Gintas K's user avatar
  • 1,227
3 votes
2 answers
13k views

best appraoch to modify a site collection url inside sharepoint 2013

I have a site collection (of type enterprise KB) under the following URL http//servername/customer/questions where the customer is a wildcard managed path. now I want to change the site collection URL ...
John John's user avatar
10 votes
3 answers
3k views

Moving a site to a different site collection

I am looking for a C# script that will move a site with all permissions and content to another site collection. Google isn't helping me or maybe i dont know what exactly to look for. e.g. I have a ...
Muhammad Raja's user avatar
9 votes
2 answers
4k views

Programatically determine who created a site collection

Is there a way, preferrably with Powershell, to determine who created a site collection? I'm not interested in who the site collection admins are, but who the actual creator of the site collection was....
Alan M's user avatar
  • 1,338
6 votes
2 answers
2k views

how to get site collection url from SharePoint Hosted App

I am trying to get site collection URL using _spPageContextInfo.siteAbsoluteUrl but it is giving output as https://domain.-a08083bbaacc988.sharePoint.com/sites/sitecollectionname but I want it ...
Mehul Sharma's user avatar
3 votes
6 answers
10k views

Backup and Restore SharePoint 2010 SiteCollections

I am getting an error "Backup version is different" while restoring SiteCollections from one web application to another on the same SharePoint server farm. Following are the steps I was executing when ...
AbrahamJP's user avatar
  • 677
3 votes
0 answers
549 views

SharePoint Online - Deleted site collection returned by Search REST API

I am listing all site collections of the company by calling: /_api/search/query?querytext='contentclass:STS_Site'&trimduplicates=false Among the returned site collections, some are deleted. When ...
Justin-pp's user avatar
3 votes
4 answers
3k views

All sites are read only, even for site administrators

Every site in the collection is now read-only. I can still change settings in the central admin site but am unsure what has changed. This affects everyone, users with write permission, even site ...
best's user avatar
  • 497
2 votes
2 answers
5k views

Getting lookup values from another site in the same site collection

the same site collection has two sites: Site A and B. In site A, there's a list named "A.1". In Site B, there's a list named "B.1". If I add a site column (in site collection level) named "contensOf_A....
XristosK's user avatar
  • 1,012
1 vote
3 answers
4k views

Modifying a default value for hidden column will set it as optional instead of hidden

Sometimes you are faced with problems that you can not understand. Now I have a hidden column inside my Issue tracking list, which is used to store a series of string to be read by the list workflow. ...
John John's user avatar
1 vote
1 answer
2k views

Getting Web Template Not Found error while importing

I am importing a exported site with several sub-sites to a new Site Collection of its Own but getting following error Start Time: 8/9/2012 9:32:31 AM. Progress: Initializing Import. FatalError: ...
Muhammad Raja's user avatar
1 vote
2 answers
2k views

How can I show a subfolder from another SharePoint site?

I want to display subfolders from site B on site A. I have tried the 'embed web part', but I can only embed the root folder('documents library') because I can't find a complete URL for subfolders. How ...
Mark YU's user avatar
  • 13
19 votes
6 answers
37k views

Site collection owners and site collection administrators. Can anyone explain the difference in plain english

Just found this on MSDN and I'm confused. the Owners group of a site is not the same as the site collection owners, which themselves are called site collection administrators in the Central ...
Newbie's user avatar
  • 339
14 votes
4 answers
38k views

How can I get the root site collection from SPContext.Current?

With SPContext.Current I can get the current site or current web. However, I would like to get the root site collection for my current web application. I know that I can get the web application from ...
skeletank's user avatar
  • 2,157
13 votes
5 answers
88k views

List all Site Collections in a Farm

I want to be able to see the number, names, url of all site collections there are in a given farm. Would there be a powershell command to do that?
Regmi's user avatar
  • 511
12 votes
2 answers
10k views

Retrieve toplevel site's subsites using REST _api

I'm currently working on an iOS app which uses _api-services to retrieve data stored in documents libraries of a SharePoint Online. Consuming _api/web/Lists/ works well so far. At the moment the REST ...
frank's user avatar
  • 123
10 votes
5 answers
55k views

How to activate "SharePoint Server Publishing Infrastructure " in SharePoint Online

I don't see SharePoint Server Publishing Infrastructure listed in the site features list. but If i try to enable "SharePoint Server Publishing" I get an error saying that the Infrastructure plug in ...
Crash893's user avatar
  • 581
9 votes
1 answer
7k views

How to create root site collection with custom web template using PowerShell

I have found a PowerShell script to create a site collection with the template "STS#0", but i want to create a root site collection with a custom template, what will be the possible PowerShell command?...
SPBeginer's user avatar
  • 2,547
7 votes
4 answers
6k views

Site collection creation cancelled partway - now I can't delete or use it

Unfortunately we had a situation where an IISRESET was performed by one user whilst another was creating a site collection - now the site collection can't be deleted. When I go to central ...
Michael A's user avatar
  • 1,435
7 votes
3 answers
5k views

Automatically turning on a feature on a new site collection

Is it possible to turn on a custom feature atomically when you create a new site collection? I have a branding feature that I want to be turned on by default for each site collection made.
John's user avatar
  • 3,763
7 votes
4 answers
12k views

SharePoint 2010 Javascript Client Object Model cross site collections?

I've read some unofficial things online that using the Javascript client object model to retrieve content from other site collections is not allowed due to prevent the equivalent of "cross site ...
Brian's user avatar
  • 1,602
6 votes
4 answers
20k views

How to activate feature using powershell script?

I need to activate specific feature to all site collection which is inside the particular web application using powershell script?
Ayyappan Anbalagan's user avatar
6 votes
3 answers
25k views

Activating Site Collection Level Feature with PowerShell Script

I am trying to activate a Site scoped feature using a powershell script. I have another scrip which deploys my solution and I see my feature is installed correctly in Site Collection feature gallery. ...
V.B's user avatar
  • 763
6 votes
1 answer
1k views

Modify SharePoint Online Site Collection URL

I have a SharePoint Online private site collection which have called https//myco.sharepoint.com/sites/coolthing_poc. Is there a way for me to rename it to https//myco.sharepoint.com/sites/coolthing ...
Evan Riser's user avatar
5 votes
3 answers
11k views

Cannot delete site collection in Central Administration

I had created a site collection. But there is a problem of web-frontend server (I did not know when I created the site), so the page is always in processing. After waiting 40 mins, I closed the page. ...
AnnaCICI's user avatar
  • 533
5 votes
1 answer
1k views

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

I have deleted one of my site collection and when I check under View All Site Collection in Central Administration the deleted site collection is still appearing. How can I remove that site from ...
Rahul Gokani's user avatar
  • 1,074
5 votes
3 answers
4k views

Sharepoint 2013 - List of Site Collection Administrator (JavaScript)

SharePoint 2013 On-Premises. I have a need to display Site Collection Administrators somewhere on the main page. To test this out, I have written a JavaScript for fetching user data of a website, ...
Russel B's user avatar
5 votes
4 answers
7k views

How to add event receivers to all the lists in a site collection?

What is the best practice around adding event receivers across all the lists in a Site Collection?
Geek's user avatar
  • 545
5 votes
2 answers
21k views

create New site collection with new content database using powershell

How to create a new site collection in existing web application but with new content database using powershell.
adilahmed's user avatar
  • 2,965
5 votes
4 answers
10k views

Site Collection Administrators permissions missing

I've run into a situation where my main administration account is missing the site collection administrator rights. The account in question did: Create the site collections. Stands as primary site ...
Christoffer's user avatar
  • 9,801
5 votes
2 answers
822 views

Cannot get all site collection users using CSOM

I am an admin of a new site collection in a SharePoint Online environment, and I can see all the users in user pickers. However, if i want to get the users in CSOM, i.e: var users = context.Web....
achehab's user avatar
  • 95
4 votes
3 answers
6k views

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

I want to create subsite using custom template. how can get list of activated custom template name using powershell script?
Jeeva Jeyapaul's user avatar
4 votes
4 answers
14k views

Move files to another site collection and retain version history

We are creating a new site collection and migrating content from the old site. The problem is we need to retain version history for files. We have global admin access, but no access to the server ...
g0013y's user avatar
  • 41
3 votes
2 answers
932 views

Could not rename this site collection. The URL specified is already in use

I am trying to rename a site collection, using scripts something like this: $site = Get-SPSite http://portal.contoso.com/sites/foo $uri = New-Object System.Uri("https://foo.contoso.com") $...
Burre Ifort's user avatar
  • 1,337
3 votes
1 answer
556 views

back up restore onto a different site collection

If I was to use a backup of one site collection and restore it onto another, would this give me every single thing that was on that site collection. So sites, lists, workflows etc?
jamesd's user avatar
  • 429
3 votes
1 answer
6k views

Set group as secondary owner of a Site Collection

All is in the subject. Is it possible to use an AD group (instead of a user) as the secondary owner of a Site collection ? Both in graphical mode and with powershell (New-SPSite ... -...
Nico's user avatar
  • 1,022
3 votes
1 answer
15k views

Displaying a library on a different site (same collection) in SP2013

On my root site, I have a Document Library which contains a lot of important documents. For this Library, on its owning site I can create a webpart which views the folders and items in a nice manner. ...
Dmytro's user avatar
  • 86
3 votes
3 answers
9k views

Get-SPUser without specify a site collection

I am going to migrate users with Move-SPUser. To do this, I am getting the user first: $user = Get-SPUser -Identity $adAccount -web https://sharepoint/site-collection The moving them: Move-SPUser –...
steveareeno's user avatar
  • 1,185
3 votes
1 answer
3k views

how to check if a webpart already exists on a page or not

I am adding three webparts with different titles to a given page url, but I need to check if webpart is already on page or not, here is the code i am using atm to add webpart to the page. using (...
Muhammad Raja's user avatar
3 votes
1 answer
3k views

Creating a Site Collection - Get "Error in resolving user"

I have a SharePoint 2013 environment in a DEV_DOMAIN that was upgraded from SharePoint 2010 COMPANY_DOMAIN should have a trust set up with DEV_DOMAIN. I'm logged into the site as COMPANY_DOMAIN\...
Paul Rowland's user avatar
3 votes
2 answers
5k views

SharePoint Web Application DNS mapping

I have created a Site Collection "Demo" on the Default "SharePoint - 80" web application. The web server IP is x.x.x.37 and the DNS entry for that is sp-apps.portal.com. How can I enable users to ...
apurva mishra's user avatar
3 votes
2 answers
127 views

Sharepoint online: 'new' sites derived from groups

The 'new' sites offered as a transformation from groups might be easy to use for brand new users who have seen nothing else, but a pain for old sharepoint users. What I have noticed is that the new ...
susan's user avatar
  • 2,668
3 votes
4 answers
10k views

Restore-SPSite : Access Denied

Restore-SPSite : Access Denied You do not have permission to perform this action or access this resource. This is the error I get when trying to restore a Site Collection backup from the integrated ...
Scott Rooke's user avatar
3 votes
3 answers
7k views

SP2010 Reset all subsites to inherit masterpage using c#

I'm creating a site feature reciever which sets a custom master page on the root web. I would also like the master page set on the root to be inherit to all the subsites. What is the most elegant way ...
user avatar
2 votes
2 answers
2k views

Rename sitecollection

Im trying to rename a site collection by changing the url by using this PowerShell $site = get-spsite -identity http://xxx:9000/sites/SCOne $site.Rename("http://xxx:9000/sites/SCOneNew") I got this ...
Gästa's user avatar
  • 61