DA4R ACC Document User Permissions

80 Views Asked by At

I have a web app that allows users to submit Design Automation for Revit work items via the APS APIs. I have an automation that begins with opening a file from Autodesk Construction Cloud using the following code:

ModelPath cloudModelPath = ModelPathUtils.ConvertCloudGUIDsToCloudPath(ModelPathUtils.CloudRegionUS, ProjectGuid, ModelGuid);

OpenOptions openOptions = new OpenOptions();
openOptions.AllowOpeningLocalByWrongUser = true;
openOptions.Audit = false;
openOptions.IgnoreExtensibleStorageSchemaConflict = true;

Document doc = rvtApp.OpenDocumentFile(cloudModelPath, openOptions);

I have found that this works fine for user A (me) but not for user B, even using the exact same model (and thus Project GUID and Model GUID). User B's work item fails with the following lines on the report:

Autodesk.Revit.Exceptions.RevitServerUnauthorizedException: You are unauthorized to access this hub/project or the hub/project doesn't exist. Detail is One or more errors occurred.
    at Autodesk.Revit.DB.ModelPathUtils.ConvertCloudGUIDsToCloudPath(String region, Guid projectGuid, Guid modelGuid)

What's confusing to me is that I have confirmed that user B has access to the hub and project in question. Otherwise, he wouldn't be able to select the file from ACC and get access the correct GUIDs in the first place. The hub/project certainly exists, which leads me to thinking there's a genuine permissions error somewhere else and this exception isn't pointing me to it.

Are there any other permissions required for a DA4R user to avoid the RevitServerUnauthorizedException other than hub/project access? The Revit Core Engine (2022) is running at this point so it doesn't seem like a license thing.

0

There are 0 best solutions below