Hi,
I have a provider hosted app and I want to list out specific document libraries on a site that a user has permission to. I have the following code which is getting me a list of all the document libraries on the site but how do I:
a) Change this so that is only list document libraries that the current user has permission to view
b) Only show specific document libraries (it appears to be showing system created ones such as "Form templates", "Site assets" etc
ListCollection lists = clientContext.Web.Lists; clientContext.Load<ListCollection>(lists); clientContext.ExecuteQuery(); foreach (List list in lists) { clientContext.Load(list, l => l.DefaultViewUrl); clientContext.ExecuteQuery(); documentLibraries.Add(list); }}
Regards
Tony