I'd like a Power Automate flow to configure read permissions on the Site Assets library for a SharePoint group that contains external users.
However, I'm having a hard time retrieving the Site Assets library through the SharePoint REST API. This morning I observed some interesting behavior.
When a new team site has been created, and run the following query, I get no results: GET https://tenantname.sharepoint.com/sites/2023-00719/_api/web/lists?$filter=Title eq 'Siteactiva' (where Siteactiva equals Site Assets in Dutch).
Even when I paste the request URL in the browser, it returns an empty array.
However, when I visit the site through the browser, walk through the site templates pop-up and then run the same query once again I do get the list returned. Nothing changed to the request URL.
What would be the best approach for me to retrieve the Site Assets library's GUID after the team site has just been created?
Thanks in advance for all help provided!