Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

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
6answers
10k 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 ...
1
vote
4answers
10k 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....
12
votes
3answers
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 ...
11
votes
4answers
3k 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 ...
10
votes
1answer
13k 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 ...
3
votes
2answers
11k 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 ...
10
votes
3answers
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 ...
2
votes
2answers
4k 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....
1
vote
1answer
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: ...
1
vote
3answers
3k 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. ...
6
votes
2answers
1k 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 ...
3
votes
4answers
1k 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 ...
3
votes
6answers
9k 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 ...
19
votes
6answers
35k 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 ...
12
votes
5answers
83k 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?
9
votes
2answers
3k 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....
12
votes
2answers
8k 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 ...
8
votes
4answers
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 ...
12
votes
4answers
35k 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 ...
9
votes
5answers
47k 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 ...
5
votes
4answers
6k 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?
5
votes
2answers
17k 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.
3
votes
4answers
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 ...
1
vote
2answers
2k views

Copy a subsite from one site collection to another using site templete, will copy all the site collection columns to be defined as a subsite columns

I am working on SharePoint server 2013 web application and i have a site collection of type team site named "business functions", and it have three subsites. where all the columns were defined inside ...
8
votes
1answer
6k 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?...
7
votes
3answers
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.
5
votes
2answers
661 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....
5
votes
4answers
8k 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 ...
4
votes
3answers
5k 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?
3
votes
4answers
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 ...
3
votes
1answer
5k 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 ... -...
2
votes
2answers
657 views

copy a SP 2010 site collection from prod to dev

We are trying to copy a SP 2010 site collection from our prod environment to dev. The site collection has it's own content db. Is it possible to just make a backup of the prod content db, restore it ...
2
votes
5answers
4k views

Best way to migrate a site collection from Enterprise to Foundation?

I have a site collection on an Enterprise server that I need to migrate to a server that only has Foundation on it. I have disabled all Enterprise-only features, and attempted a backup and restore, ...
2
votes
2answers
4k views

Moving Site Collection to a different Web Application

I have been configuring a SP 2013 site, and I have a My Site Host Site Collection on its own Web Application. But now I find out I can't use two distinct URLs (our "main" site, portal.company.com may ...
2
votes
1answer
4k views

Sharepoint 2013 App access cross site collections

I'm using SharePoint 2013 and I wrote an AppPart that needs items of a list other than it's host site collection. But it keeps popping up an error indicating that my request has been failed. Access ...
1
vote
2answers
4k views

How to allow contributor users to add web parts

I am working on an enterprise wiki site collection, currently contributor users with the following permission level, cannot add web parts:- I think that assigning them a Design permission will solve ...
0
votes
1answer
779 views

getting error while importing a site

I exported a site which have many sub sites, and then that sub sites have several sub sites, but getting following error if someone got any idea about it. [16/07/2012 13:47:20]: FatalError: ...
7
votes
4answers
5k 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 ...
6
votes
1answer
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 ...
6
votes
3answers
22k 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. ...
6
votes
4answers
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?
5
votes
3answers
2k 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, ...
4
votes
4answers
12k 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 ...
3
votes
2answers
992 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 ...
3
votes
2answers
167 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") $site.Rename(...
3
votes
2answers
104 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 ...
3
votes
3answers
7k 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 –...
3
votes
1answer
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 (...
3
votes
1answer
447 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?
2
votes
1answer
112 views

SharePoint 2010 performance with SQL Server RBS

The SharePoint 2010 capactity planning document states that a database for a single sitecollection should not exceed 200 GB. However, if I use SQL Server RBS I can keep the physical database size ...