Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build/version.debug.increment
Original file line number Diff line number Diff line change
@@ -1 +1 @@
26
27
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ internal async static Task<List<ISiteCollection>> GetAsync(PnPContext context, V
}

/// <summary>
/// Enumerating site collections by querying a hidden list in SharePoint tenant admin. Only works when using
/// Enumerating site collections by querying a hidden list in SharePoint tenant admin. Only works when using
/// application permissions with Sites.Read.All or higher or when the user has read access to SharePoint tenant admin,
/// which is the case for global SharePoint administrators
/// </summary>
Expand Down Expand Up @@ -143,7 +143,7 @@ private async static Task LoadSitesViaTenantAdminHiddenListAsync(PnPContext cont
}

/// <summary>
/// Enumerating site collections by querying a hidden list in SharePoint tenant admin. Only works when using
/// Enumerating site collections by querying a hidden list in SharePoint tenant admin. Only works when using
/// application permissions with Sites.Read.All or higher or when the user has read access to SharePoint tenant admin,
/// which is the case for global SharePoint administrators
/// </summary>
Expand Down Expand Up @@ -195,7 +195,7 @@ await LoadSitesViaTenantAdminHiddenListAsync(context, sitesListAllQuery, (IEnume
<FieldRef Name='SiteOwnerName' />
<FieldRef Name='SiteOwnerEmail' />
<FieldRef Name='StorageQuota' />
<FieldRef Name='StorageUsed' />
<FieldRef Name='StorageUsed' />
<FieldRef Name='TemplateName' />
<FieldRef Name='ChannelType' />
</ViewFields>
Expand All @@ -216,14 +216,14 @@ await LoadSitesViaTenantAdminHiddenListAsync(context, sitesListFilterQuery, (IEn
{
foreach (var listItem in listItems)
{
if (listItem["DeletedBy"] != null)
if (listItem["TimeDeleted"] != null)
{
continue;
}

Uri url = new Uri(listItem["SiteUrl"].ToString());
Guid siteId = Guid.Parse(listItem["SiteId"].ToString());

if (channelSites.FirstOrDefault(p => p.Id == siteId) == null)
{
channelSites.Add(new SiteCollectionWithDetails()
Expand Down Expand Up @@ -542,7 +542,7 @@ internal async static Task<List<ISiteCollection>> GetViaGraphSitesApiAsync(PnPCo
var result = await (context.Web as Web).RawRequestAsync(sitesEnumerationApiCall, HttpMethod.Get).ConfigureAwait(false);

#region Json response
/*
/*
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#sites",
"@odata.nextLink": "https://graph.microsoft.com/v1.0/sites?$skiptoken=UGFnZWQ9VFJVRSZwX0ZpbGVMZWFmUmVmPTE3MjgyXy4wMDAmcF9JRD0xNzI4Mg",
"value": [
Expand Down