Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

error 403 when calling FoldersAPI > SearchFolderContentsAsync #86

Open
afshinjafari opened this issue Apr 7, 2021 · 1 comment
Open

Comments

@afshinjafari
Copy link

Hi,
I'm trying to use FoldersAPI search method agains BIM360 Docs project but while I can use other FoldersAPI methods and functions, the SearchFolderContentsAsync method returns '403' error.

Documentation of BIM360 Docs API suggests "403 -> The request was successfully validated but permission is not granted or the application has not been white-listed. Do not try again unless you solve permissions first." however I cannot find any settings / permissions that could help.
To set the Forge APP access to BIM360 Docs project I've used this article:
https://forge.autodesk.com/en/docs/bim360/v1/tutorials/getting-started/manage-access-to-docs/

and this works well with accessing files and folders etc, but not search.

Here's the response content:
{"jsonapi":{"version":"1.0"},"errors":[{"id":"73a8fe00-19b1-43ad-9fe8-9f8eea6ced74","status":"403","code":"USER_NOT_AUTHENTICATED","detail":"The user could not be authenticated."}]}

Any help is appreciated.
Afshin

@watcherkb
Copy link

watcherkb commented Jan 4, 2022

Maybe a little late, but you need to give right permissions/scopes
Scope.DataRead, Scope.DataCreate, Scope.DataWrite

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants