Sync folder access from Rest API to list
Recipe ToolsDeveloper ToolAPI Integration
What it does
When someone calls this automation via a function, it sends requests to a Rest API to fetch all folders. The automation filters folders by username match and builds a list of folder IDs for return.
Who it's for
IT teams who need to retrieve and organize folder access data from an API without manual queries.
Apps used
How teams use this
Retrieve user folder access on demand
Call this automation to get all folder IDs for a specific username without querying the API manually. The list is built and returned in real time for immediate use.
Validate folder permissions before provisioning
Use this automation before granting access to check which folders someone already has. Prevent duplicate access requests by confirming existing folder IDs first.
Filter folders by department prefix
Modify the username match condition to filter by department code or folder prefix instead. Only folders matching that pattern are added to the returned list.
How it works
- Receive the function call. Someone calls this automation as a function with a username parameter to retrieve folder IDs they can access.
- Request folders from the Rest API. Send an HTTP request to the Rest API to fetch a page of folders, repeating for each page until all results are retrieved from the endpoint.
- Filter folders by username. Check each folder name to see if it contains the username. When it matches, add that folder ID to the list for the response.
- Return the folder IDs. After all pages are processed, return the complete list of folder IDs where the username was found in the folder name.