Forums/API

GetFoldersList returns public folders only

Liana Mikulin
posted this on April 25, 2012 07:26 PM

Hi there, I am calling the GetFoldersList api function for a specific user (I think I have the single sign on working properly) and I am expecting to get a list of all the folders that this user has read/view access to, however, all I get is the list of the folders that have "Public" share permissions. Actually it doesn't matter which user it is, the GetFoldersList call always returns the public folders. Is this as intended? The searchQuery string is set to null and the 'publicOnly' flag doesn't seem to change anything. Thank you in advance for any feedback.

 

Comments

User photo
Kevin Schmidt
Panopto

No, this is not the intended behavior. If the PublicOnly flag is true, then yes you will only get folders back. Otherwise you should get all the folders the user is able to see.

What are you passing in for your AuthenticationInfo parameter?

April 25, 2012 07:58 PM
User photo
Liana Mikulin

Hi Kevin, Ok, I just tested and re-tested - none of the folders where my user has either 'Creator' or 'Viewer' permissions are listed - only the Public folders are returned from the GetFoldersList api call. I tried true/false/null for the ListFoldersRequest publicOnly flag, but that doesn't seem to affect the result. So, you're right, I am wondering the same thing - if this method does indeed work properly, then it could be that there is something wrong with the authentication. Please see my other post for how I am doing my single sign on login:

https://helpdesk.panopto.com/entries/21278763-invoking-the-external...

I've set up a bounce page as an External Login Provider. On the initial hit to the bounce page (where GET action = 'relogin') all it does it redirect to my login page where I call LogOnWithExternalProvider with userKey '<my instance name>\<the user name>' and authCode generated as you described and similarly to what is done in Blackboard. On the second bounce (once the log on has been called), the bounce page verifies its generated authCode with the GET passed auth code and if there is a success, then it redirects to the application. For the GetFoldersList call, I create the AuthenticationInfo object using the same values for userKey and authCode as I did for the LogOnWithExternalProvider.

April 26, 2012 01:45 PM
User photo
Kevin Schmidt
Panopto

Ok, that all sounds right. Are you using hosted or a deployment? If hosted, what is your affiliation name? If a deployment, what version are you running (you can see it in the settings page as ServerVersion)?

April 26, 2012 02:02 PM
User photo
Corey Wirun
We are using a hosted service. If affiliation name, you mean the first part of the FQDN, it's DLRI. Corey
April 29, 2012 10:05 AM
User photo
Chris Dunlop

I am having the exact same issue. If I make a folder private I cannot see it even if I put myself as a viewer in the folder.

I have played with every setting and have not been able to come to any conclusion on this at all.

Any help would be greatly appreciated.

May 02, 2012 05:58 PM
User photo
Chris Dunlop

Here is the code that I am using. I absolutely cannot get the private folders. Is it do to passing null in the getfolderlist call? From my understanding the cookie manager should handle this for me.

if not, how do I get the authorizationinfo into this code stream?

May 02, 2012 06:25 PM