How to enumerate system-managed SharePoint lists and drives

Site lists and drives

When enumerating a site's lists and drives, the Graph API hides system objects by default.

Check which site lists are returned for my root site in the developer tenant.

GET /v1.0/sites/{site_id}/lists?$select=id,displayName,description

The response:

{
    "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#sites('{site_id}')/lists(id,displayName,description)",
    "value": [
        {
            "description": "",
            "id": "0ecb4f95-d33b-4dda-9cb6-1a233c891dd7",
            "displayName": "Events"
        },
        {
            "description": "",
            "id": "0546ed25-8fc1-4856-b3c4-5b762df2c11d",
            "displayName": "Documents"
        },
        {
            "description": "",
            "id": "ea4a1bef-1ad9-484c-89bb-8dc186674354",
            "displayName": "Experiment"
        },
        {
            "description": "SharePointHome OrgLinks List",
            "id": "1404fe78-1cd2-49cd-8e2e-d940af53de80",
            "displayName": "SharePointHomeOrgLinks"
        }
    ]
}

Similar for site drives

GET /v1.0/sites/{site_id}/drives?$select=id,name,description

The response:

{
    "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#drives(id,name,description)",
    "value": [
        {
            "description": "",
            "id": "b!cbcekAxP9kOVfnrrG5HY3Ot-BE-Lt2VJvpgTAk69Iywl7UYFwY9WSLPEW3Yt8sEd",
            "name": "Documents"
        }
    ]
}

System-managed lists and drives

To also enumerate system objects, specify the system property in the $select query parameter.

See the difference in the number of returned lists when the system property is specified in the $select query parameter.

GET /v1.0/sites/{site_id}/lists?$select=id,displayName,description,systen

The response:

{
    "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#sites('{site_id}')/lists(id,displayName,description,system)",
    "value": [
        {
            "description": "All people.",
            "id": "5a1f39bd-5eb5-4e20-a6de-13c3eddd6ca3",
            "displayName": "User Information List",
            "system": {}
        },
        {
            "description": "",
            "id": "0ecb4f95-d33b-4dda-9cb6-1a233c891dd7",
            "displayName": "Events"
        },
        {
            "description": "Use this list to store composed looks. These looks can be applied to this site by navigating to Site Settings and choosing Change the look.",
            "id": "b6c4c63a-8af1-4ec9-b216-3bb5f5752dcc",
            "displayName": "Composed Looks",
            "system": {}
        },
        {
            "description": "Use this library to store files which are included on pages within this site, such as images on Wiki pages.",
            "id": "0717f973-b079-45a0-91f3-3fd75e27c251",
            "displayName": "Site Assets",
            "system": {}
        },
        {
            "description": "",
            "id": "0546ed25-8fc1-4856-b3c4-5b762df2c11d",
            "displayName": "Documents"
        },
        {
            "description": "",
            "id": "9495ab85-e3f1-4919-a53b-72896f0440b1",
            "displayName": "Site Pages",
            "system": {}
        },
        {
            "description": "",
            "id": "edd1c0fa-ee37-4aad-8502-80b97595336f",
            "displayName": "appdata",
            "system": {}
        },
        {
            "description": "Use the theme gallery to store themes. The themes in this gallery can be used by this site or any of its subsites.",
            "id": "11e0ae1c-e518-4a3e-b4d6-81bdb3a272db",
            "displayName": "Theme Gallery",
            "system": {}
        },
        {
            "description": "Library of Site Collection Maintenance Logs",
            "id": "175e3a55-7c7c-4e67-bfcc-88348df669ca",
            "displayName": "Maintenance Log Library",
            "system": {}
        },
        {
            "description": "",
            "id": "ea4a1bef-1ad9-484c-89bb-8dc186674354",
            "displayName": "Experiment"
        },
        {
            "description": "This library contains administrator-approved form templates that were activated to this site collection.",
            "id": "9518f24e-46cd-44ef-abb8-8e777483517f",
            "displayName": "Form Templates",
            "system": {}
        },
        {
            "description": "Make a template available for use in list creation by adding it to this gallery. The templates in this gallery are available to this site and all sites under it. Default list templates are not shown.",
            "id": "3fb1a903-8bbc-43b6-bfd7-ad3ccbc8f912",
            "displayName": "List Template Gallery",
            "system": {}
        },
        {
            "description": "Use the Solution Gallery to track user solutions.",
            "id": "e349bbe6-005d-4629-9889-b062bdbf55da",
            "displayName": "Solution Gallery",
            "system": {}
        },
        {
            "description": "Use the style library to store style sheets, such as CSS or XSL files. The style sheets in this gallery can be used by this site or any of its subsites.",
            "id": "b65b5cba-9b6b-4330-8554-b3f3c55a3b2b",
            "displayName": "Style Library",
            "system": {}
        },
        {
            "description": "Use this Web Part Gallery to store and retrieve Web Parts. The Web Parts in this gallery are available to this site and all sites under it. To preview a Web Part, click its title.",
            "id": "4fe4c46d-8f5c-4fe2-b094-c7897437bf56",
            "displayName": "Web Part Gallery",
            "system": {}
        },
        {
            "description": "",
            "id": "5ff4cd3a-3d3b-44e9-8173-cad3521729a0",
            "displayName": "appfiles",
            "system": {}
        },
        {
            "description": "SharePointHome OrgLinks List",
            "id": "1404fe78-1cd2-49cd-8e2e-d940af53de80",
            "displayName": "SharePointHomeOrgLinks"
        },
        {
            "description": "Use the master page gallery to store master pages. The master pages in this gallery are available to this site and any sites underneath it.",
            "id": "f00f5497-f8e2-4793-b5a2-e2a79c4a5a2c",
            "displayName": "Master Page Gallery",
            "system": {}
        },
        {
            "description": "The description for the hidden list for the taxonomy feature.",
            "id": "b3787bb0-79da-4c19-8696-e54f15a9fc5c",
            "displayName": "TaxonomyHiddenList",
            "system": {}
        },
        {
            "description": "List of user browser-enabled form templates on this site collection.",
            "id": "6201b199-d61c-4aca-be49-fb497859fd40",
            "displayName": "Converted Forms",
            "system": {}
        }
    ]
}

There are a lot of system-managed lists like SiteAssets or TaxonomyHiddenList. Of course, you can use the id of the system list to get the details by calling the endpoint /sites/{site_id}/lists/{list_id}.

Same for site drives

GET /v1.0/sites/{site_id}/drives?$select=id,name,description,system

The response:

{
    "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#drives(id,name,description,system)",
    "value": [
        {
            "description": "Use this library to store files which are included on pages within this site, such as images on Wiki pages.",
            "id": "b!cbcekAxP9kOVfnrrG5HY3Ot-BE-Lt2VJvpgTAk69Iyxz-RcHebCgRZHzP9deJ8JR",
            "name": "Site Assets",
            "system": {}
        },
        {
            "description": "",
            "id": "b!cbcekAxP9kOVfnrrG5HY3Ot-BE-Lt2VJvpgTAk69Iywl7UYFwY9WSLPEW3Yt8sEd",
            "name": "Documents"
        },
        {
            "description": "",
            "id": "b!cbcekAxP9kOVfnrrG5HY3Ot-BE-Lt2VJvpgTAk69IyyFq5WU8eMZSaU7colvBECx",
            "name": "Site Pages",
            "system": {}
        },
        {
            "description": "Use the theme gallery to store themes. The themes in this gallery can be used by this site or any of its subsites.",
            "id": "b!cbcekAxP9kOVfnrrG5HY3Ot-BE-Lt2VJvpgTAk69IywcruARGOU-SrTWgb2zonLb",
            "name": "Theme Gallery",
            "system": {}
        },
        {
            "description": "Library of Site Collection Maintenance Logs",
            "id": "b!cbcekAxP9kOVfnrrG5HY3Ot-BE-Lt2VJvpgTAk69IyxVOl4XfHxnTr_MiDSN9mnK",
            "name": "Maintenance Log Library",
            "system": {}
        },
        {
            "description": "This library contains administrator-approved form templates that were activated to this site collection.",
            "id": "b!cbcekAxP9kOVfnrrG5HY3Ot-BE-Lt2VJvpgTAk69IyxO8hiVzUbvRKu4jnd0g1F_",
            "name": "Form Templates",
            "system": {}
        },
        {
            "description": "Make a template available for use in list creation by adding it to this gallery. The templates in this gallery are available to this site and all sites under it. Default list templates are not shown.",
            "id": "b!cbcekAxP9kOVfnrrG5HY3Ot-BE-Lt2VJvpgTAk69IywDqbE_vIu2Q7_XrTzLyPkS",
            "name": "List Template Gallery",
            "system": {}
        },
        {
            "description": "Use the Solution Gallery to track user solutions.",
            "id": "b!cbcekAxP9kOVfnrrG5HY3Ot-BE-Lt2VJvpgTAk69Iyzmu0njXQApRpiJsGK9v1Xa",
            "name": "Solution Gallery",
            "system": {}
        },
        {
            "description": "Use the style library to store style sheets, such as CSS or XSL files. The style sheets in this gallery can be used by this site or any of its subsites.",
            "id": "b!cbcekAxP9kOVfnrrG5HY3Ot-BE-Lt2VJvpgTAk69Iyy6XFu2a5swQ4VUs_PFWjsr",
            "name": "Style Library",
            "system": {}
        },
        {
            "description": "Use this Web Part Gallery to store and retrieve Web Parts. The Web Parts in this gallery are available to this site and all sites under it. To preview a Web Part, click its title.",
            "id": "b!cbcekAxP9kOVfnrrG5HY3Ot-BE-Lt2VJvpgTAk69IyxtxORPXI_iT7CUx4l0N79W",
            "name": "Web Part Gallery",
            "system": {}
        },
        {
            "description": "",
            "id": "b!cbcekAxP9kOVfnrrG5HY3Ot-BE-Lt2VJvpgTAk69Iyw6zfRfOz3pRIFzytNSFymg",
            "name": "appfiles",
            "system": {}
        },
        {
            "description": "Use the master page gallery to store master pages. The master pages in this gallery are available to this site and any sites underneath it.",
            "id": "b!cbcekAxP9kOVfnrrG5HY3Ot-BE-Lt2VJvpgTAk69IyyXVA_w4viTR7Wi4qecSlos",
            "name": "Master Page Gallery",
            "system": {}
        },
        {
            "description": "List of user browser-enabled form templates on this site collection.",
            "id": "b!cbcekAxP9kOVfnrrG5HY3Ot-BE-Lt2VJvpgTAk69IyyZsQFiHNbKSr5J-0l4Wf1A",
            "name": "Converted Forms",
            "system": {}
        }
    ]
}
0
Buy Me a Coffee at ko-fi.com
An error has occurred. This application may no longer respond until reloaded. Reload x