Skip to content

get_lists does not provide access to system lists #950

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mephinet opened this issue Mar 23, 2023 · 1 comment
Open

get_lists does not provide access to system lists #950

mephinet opened this issue Mar 23, 2023 · 1 comment

Comments

@mephinet
Copy link

Sharepoint uses system lists for Site Pages, Site Assets, etc. These lists are currently inaccessible via O365.

According to this documentation: https://learn.microsoft.com/en-us/graph/api/list-list?view=graph-rest-1.0&tabs=http and this SO response: https://stackoverflow.com/a/47563009/12194489:

Lists with the system facet are hidden by default. To list them, include system in your $select statement.

I propose adding a include_system=False parameter to the Site.get_lists method, that would do result in the equivalent of self.con.get(self.build_url("/lists?select=weburl,system" )) to be requested.

@alejcas
Copy link
Member

alejcas commented Apr 28, 2023

Please send a PR with your proposed changes.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants