Get PDM Folder permission using C#

We wrote sample C++ program, which utilize the GetFolderPermissions API (as mentioned in the following link GetFolderPermissions Method (IEdmUserMgr7) - 2024 - SOLIDWORKS API Help ) from SW PDM API help to retrieve the folder permissions for the PDM Vault Folder and its subfolders. however, the folder permissions returned are incorrect.

 

Thus, we tested the C# example (as mentioned in the following link Get and Set Folder Permissions Example (C#) - 2024 - SOLIDWORKS API Help ) displaying the folder permission using GetFolderPermissions, Even in C# sample program, the permissions for the subfolders are returning incorrectly. Attached below are the screenshots for our situation.

 

In SW PDM folder for the admin user, “Activate computed BOM” (highlighted in red colour box) is not configured or not set. It is the same for the other user “Solidworks” also.

 

 

However, during debugging of our code, we observed that it indicates the permission is configured for "Active Computed BOM." Please note that the 11th bit indicates EdmRight_BomActivate is set for “folderPermission.mlEdmRightFlag” variable.

 

Kindly provide any details or code snippet info to get the proper folders or subfolders permissions in the code as configured in PDM folder. Thank you.