Skip to content

Sharepoint admin hidden lists urls changed on new tenants #1719

@conncampbell

Description

@conncampbell

Category

  • Bug

Describe the bug

On a freshly created tenant, executing

context.GetSiteCollectionManager().GetSiteCollectionWithDetailsAsync(url)

fails with a 404 not found error. The issue appears to be related to MS allowing longer list URL's. The hidden lists on the admin site are now:

https://[tenant]-admin.sharepoint.com/Lists/DO_NOT_DELETE_SPLIST_TENANTADMIN_AGGREGATED_SITECOLLECTIONS
https://[tenant]-admin.sharepoint.com/Lists/DO_NOT_DELETE_SPLIST_TENANTADMIN_ALL_SITES_AGGREGATED_SITECOLLECTIONS

instead of:

https://[tenant]-admin.sharepoint.com/Lists/DO_NOT_DELETE_SPLIST_TENANTADMIN_AGGREGATED_SITECO
https://[tenant]-admin.sharepoint.com/Lists/DO_NOT_DELETE_SPLIST_TENANTADMIN_ALL_SITES_AGGREGA

Steps to reproduce

  1. Create a net new tenant (use a trial tenant)
  2. Execute the following code:
  3. using (var context = await builder.GetContext(adminUrl).ConfigureAwait(false)) { var site = await context.GetSiteCollectionManager().GetSiteCollectionWithDetailsAsync(url) .ConfigureAwait(false); }
  4. See error

Expected behavior

The sites details are returned.

Environment details (development & target environment)

  • SDK version: 1.14.0
  • OS: Windows 11 Enterprise
  • SDK used in: Console
  • Framework: .Net 8.0
  • Tooling: Visual Studio 2022 R2

Additional context

The URL's appear to be hard coded.

string sitesInformationListAllUrl = "DO_NOT_DELETE_SPLIST_TENANTADMIN_ALL_SITES_AGGREGA";
string sitesInformationListUrl = "DO_NOT_DELETE_SPLIST_TENANTADMIN_AGGREGATED_SITECO";

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions