Skip to main content
Question

DS-Sender Created Folder need to be fetch

  • February 28, 2025
  • 7 replies
  • 42 views

Forum|alt.badge.img+2

Hi Team,

 

I want to fetch custom folder of all user(DS-Admin and DS-Sender) created under same account.

While I am trying to all get folder with List API (/restapi/v2.1/accounts/{accountId}/folders?include=envelope_folders,template_folders,shared_tempalte_folders ) with this I am only getting admin folders.

 

Please provide any solution to fetch list of Folder.

 

Thanks,

Sneha

7 replies

Forum|alt.badge.img+4

Hi Sneha,

Can you add the following parameter to your request: sub_folder_depth=-1

sub_folder_depth
If missing or any value other than -1, the returned list contains only the top-level folders. A value of -1 returns the complete folder hierarchy.

Documentation: https://developers.docusign.com/docs/esign-rest-api/reference/folders/folders/list/

The folder you are looking for may not be a top-level folder.


Forum|alt.badge.img+2
  • Author
  • Newcomer
  • 3 replies
  • March 3, 2025

Hi Troy,

 

Thanks for response but I have tried it with sub_folder_depth =-1 also this is top-level folder but it is not including.


Forum|alt.badge.img+4

Hi,

The folders that are returned are based on the user you have authenticated as for the API, so it will return all the folders that user has access to.

You mentioned in your post: I want to fetch custom folder of all user(DS-Admin and DS-Sender) created under same account.

This isn’t possible to get all the folders, for all the users for a specific Docusign account.


Forum|alt.badge.img+2
  • Author
  • Newcomer
  • 3 replies
  • March 4, 2025

Hi Tony,

 

While triggering get/list folder API how can we set user, like if we need to fetch all user’s custom folder and Shared template folder. 

Please help us in knowing where we can setup user under folder API.

 

Thanks,

Sneha Pandey


Forum|alt.badge.img+4

Hi,

When you authenticate you and call the Docusign API, you are impersonating a specific user. If you are using JWT authentication, you can specify the UserID of the User you are requesting the API.

Documentation available here: https://developers.docusign.com/platform/auth/jwt-get-token/

You would need to authenticate as the specific user(s) and then call the folder api to achieve the use case you are looking for


Forum|alt.badge.img+2
  • Author
  • Newcomer
  • 3 replies
  • March 5, 2025

Hi Tony,

Thank you for your response , but if I have 5 user in my account and I have authenticated with user 1 and now I want to have folder of other 4 user also is there any way I can change in one by one via API only.

Also authentication mode I am using is OAuth.

 

Thanks,

Sneha Pandey


Forum|alt.badge.img+4

Hi Sneha,

No there is not a way to “change users” via the API, you can review the authentication methods here:

https://developers.docusign.com/platform/auth/

The alternative is to share the folders you which to access to the user you are authenticating to via the API.