I want an api endpoint which takes the orchestrator userId and in response it gives all the folders which the user has access to. I checked the docs and i found one in swagger api but that works only for currently logged in user but my usecase is to know that in my organization for any person which are the folders he/she should be shown.
Can you please share the link of the docs from where you got this endpoint?
Its working! Thanks @Anil_G
Hi @Anil_G the endpoint doesn’t give complete folder heirarchy it just gives the roles and base folders. I want the output like the /getFolderForCurrentUser endpoint which gives all the folders including the nested subfolders as well.
you need to make one more api call for that using the folder ID to get the info you need
cheers
But the issue here is that if i make this api call using folderId it will give all the subfolders in that folder but what i want is only those subfolders for which users are granted access.Like in the other endpoint /getAllFoldersForCurrentUser it gives all the folders upto the last level of heirarchy so i want something like that.
The first screenshot is get by folder ID whoch givea only the folder id you give full path
Second screenshot is all the folder ids the user has access to
Cheers
But in the second screenshot the issue i am seeing is that suppose i have Folder A and it has subfolders A.1,A.2 with same roles as A then it only gives A in the response and not A.1 and A.2. So if i try to just find all children folder of A that might also be wrong because suppose there is some folder A.3 which the user might not have access to so that will also come.
ideally if main folder is given access then sub folders would acquire it…if subfolders alone are given then main folder wont acquire it
cheers
Thanks @Anil_G that is a useful information. So i should check from bottom to up for particular role and if it is present in children then i should show only children and if it is present at parent level then i need to fetch all children for that folder. Correct me if i am wrong here?
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.


