Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X
Hello,
I was curious to know what the minimum viable permissions is for the file upload widget.
I found this post on the forum that is close to what I am looking for but not quite.
My error message just says:
I have given my user visibility to the file repository the widget uses and when I also gave the user ServiceInvoke to all services it works fine.
So basically what I'd like to know is which service is used when uploading?
There doesn't seem to be an obvious one as far as I can tell.
Thanks,
Jens
Solved! Go to Solution.
I tested and first got unauthorized like you. In ApplicationLog I saw
Not authorized for ServiceInvoke on SearchThingsByTemplate in SearchFunctions
Invalid Request Exception: Not authorized for ServiceInvoke on CreateFolder in TestRepo
I added these permission and the upload worked.
I am currently confused why this is working with only 'CreateFolder' permission in the FileRepository. Would be interesting if this works for you as well. My setup is not a clean instance, so I may have other permissions inherited or so - but could not find any.
The permissions I mentioned before may have been for the older file upload widget.
I think it was these:
I did not verify it now. Maybe also
Hello @nmutter,
I tried these permissions and it seems like it was not the once needed as I am still getting the "Unauthorized" error.
Guess I'll wait and see if someone else has the answer.
Thanks,
Jens
I tested and first got unauthorized like you. In ApplicationLog I saw
Not authorized for ServiceInvoke on SearchThingsByTemplate in SearchFunctions
Invalid Request Exception: Not authorized for ServiceInvoke on CreateFolder in TestRepo
I added these permission and the upload worked.
I am currently confused why this is working with only 'CreateFolder' permission in the FileRepository. Would be interesting if this works for you as well. My setup is not a clean instance, so I may have other permissions inherited or so - but could not find any.
The permissions I mentioned before may have been for the older file upload widget.
Hello,
I didn't actually check the ApplicationLog before, but you are correct, it does give this error.
And it seems like giving this permission, and this permission only,, lets the user upload files.
So for confirmation, the permission "CreateFolder" lets a user upload files from the file upload widget.
Thanks!
Jens
And I am really confused how this can be the only permission needed. Seems wrong for me, like TWX does bypass its own permission model for the file upload widget. Should create a PTC case for this..