Title: How to get complete data of folders, sub folders, issues, clashes and employees of forge bim360
Tags: autodesk-bim360
Question: Can I get complete folders and subfolders information of bim360 data from forge to post in the dashboard? I have a requirement that is within the dashboard I have to show complete folder data and issues data and employees and clashes data.
Comment: Welcome to SO! Please [edit] your question and copy-paste some code you've already tried and rephrase the question asking about why it doesn't work for example. Stackoverflow is not a code generator service.


Here is another answer: To get folder structure, Here are the steps.
Call GET hubs/:hub_id/projects/:project_id/topFolders to get the highest level folders the user can access for a given project.
Call GET projects/:project_id/folders/:folder_id/contents repeatedly until there is no folder appeared in the response.
Here is the code snippet from the learn forge tutorial:
async function getFolders(hubId, projectId, oauthClient, credentials, res) {
const projects = new ProjectsApi();
const folders = await projects.getProjectTopFolders(hubId, projectId, oauthClient, credentials);
res.json(folders.body.data.map((item) =&gt; {
return createTreeNode(
item.links.self.href,
item.attributes.displayName == null ? item.attributes.name : item.attributes.displayName,
item.type,
true
);
}));
async function getFolderContents(projectId, folderId, oauthClient, credentials, res) {
const folders = new FoldersApi();
const contents = await folders.getFolderContents(projectId, folderId, {}, oauthClient, credentials);
const treeNodes = contents.body.data.map((item) =&gt; {
var name = (item.attributes.name == null ? item.attributes.displayName : item.attributes.name);
if (name !== '') { // BIM 360 Items with no displayName also don't have storage, so not file to transfer
return createTreeNode(
item.links.self.href,
name,
item.type,
true
);
} else {
return null;
}
});
res.json(treeNodes.filter(node =&gt; node !== null));
// ref: https://github.com/Autodesk-Forge/learn.forge.viewhubmodels/blob/nodejs/routes/datamanagement.js
For issues, check these resources:
https://forge.autodesk.com/blog/bim-360-issues-api-sample-nodejs
https://github.com/xiaodongliang/bim360-node.js-issues.api
For clash, you may check this sample: https://github.com/Autodesk-Forge/forge-bim360-clashissue
To get account users and project users, you may make use of the admin API:
https://forge.autodesk.com/en/docs/bim360/v1/reference/http/users-GET/
https://forge.autodesk.com/en/docs/bim360/v1/reference/http/admin-v1-projects-projectId-users-GET/
Comment for this answer: [GET projects/:project_id/folders/:folder_id/search](https://forge.autodesk.com/en/docs/data/v2/reference/http/projects-project_id-folders-folder_id-search-GET/)`?filter[fileType]=rvt`
Comment for this answer: how to count number of "Revit" files in a folder

{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 1, 'CommentCount': 1, 'ContentLicense': 'CC BY-SA 4.0', 'CreationDate': '2022:00:07/14/22', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<autodesk-bim360>', 'Title': 'How to get complete data of folders, sub folders, issues, clashes and employees of forge bim360', 'ViewCount': 35, 'id': 72975965, 'user_AboutMe': None, 'user_AccountId': 25805249.0, 'user_DisplayName': 'Praveen UnoTEAM', 'user_Reputation': 1.0, 'user_Views': 1.0, 'user_id': 19546882.0}}