Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 8068

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

0 votes

REST API to, given a site URL, get the top level site of that URL (sharepoint 2010, 2013 and...

You can make use of the _spPageContextInfo object to get the URL making use of the siteAbsoluteUrl property as: var siteUrl = _spPageContextInfo.siteAbsoluteUrl Another way to determine the site col …
Gautam Sheth's user avatar
3 votes
Accepted

Is it Possible to use one site collection content type in another site collection

We use the Content type hub feature to share content type across site collections. how to do it: 1) Create a source site collection 2) Activate Content type hub site collection feature on it. 3) C …
Gautam Sheth's user avatar
3 votes

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

Try the below code, will give you a list of all available templates. Using this, you can find out the custom template name as well as its ID function Get-SPWebTemplateWithId { $templates = Get …
Gautam Sheth's user avatar
1 vote

GetSubwebsForCurrentUser throws 401

Have modified/fixed your code and changed couple of things: 1) Added passWord inside foreach loop. Currently, its outside 2) Also added AuthenticationMode and set it to default. 3) Added method to …
Gautam Sheth's user avatar
1 vote
Accepted

SP Online Team Sites are Site Collections?

1) Yes, they are indeed site collections. But in addition to being a SharePoint site collection, whenever a modern team site is created, it will also automatically provision associated Office 365 gr …
Gautam Sheth's user avatar
0 votes
Accepted

What permission does user need to load Sites and Sub-Sites?

You need to have Site collection admin or owner to execute the above code. However, if you get the results that you view in the UI, i.e permission trimmed list of subsites, then you can use Web.GetSu …
Gautam Sheth's user avatar
0 votes

SharePoint Online Get Primary Site Collection Administrator

You can also use the PnP GetAdministrators extension method in CSOM. List<UserEntity> admins = web.GetAdministrators(); foreach (UserEntity admin in admins) { Console.WriteLine("Admin Login Name …
Gautam Sheth's user avatar
2 votes
Accepted

Differences between creating a Site in SharePoint Dashboard vs. Admin Center

Yes, what you have created is, what is nowadays called as Modern Sites, namely Modern Team Sites or Communication Sites. These dont show up in the standard admin center. But if you notice, there is …
Gautam Sheth's user avatar
2 votes
Accepted

Fetch all site collections using CSOM

You can use GetSitePropertiesFromSharePointByFilters method to get all site collections. It can used as below: List<SiteProperty> AllSiteVals = new List<SiteProperty>(); var tenant = new Tenant(ctx) …
Gautam Sheth's user avatar
6 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, you can get …
Gautam Sheth's user avatar
3 votes
Accepted

Query site collection property bag in SPFx extension

Looks like you are using this in Internet Explorer. You need to use a polyfill to use this in IE 11. You can download the package using npm install --save @pnp/polyfill-ie11 command. After that, yo …
Gautam Sheth's user avatar
2 votes
Accepted

Is it safe to add Visitors users who should ONLY have Read permission on my sites, as Group ...

will the Group owners get extra permissions (beyond the Read permission) on my list items and/or on the site pages when they became part of the Group Owners?? They will not get any extra perm …
Gautam Sheth's user avatar