catalpa-cl / inceptalytics

An easy-to-use API for analyzing INCEpTION annotation projects.
16 stars 7 forks source link

The permissions that "from_remote" method needs #20

Closed yanirmr closed 2 years ago

yanirmr commented 2 years ago

Hello,

Please accept my sincere thanks once again for this excellent Python package. After exploring the INCEpTION API further, I have come to the conclusion that the user's permissions need to be clarified:

According to my understanding (through trial and error), if you want to use "from_remote", the user must have the roles "ROLE_USER" and "ROLE_REMOTE" and be a project manager (curator or annotator permissions are not sufficient). users permissions' guide

simulacrum6 commented 2 years ago

Hi,

yes, this is correct. There is a section in the INCEpTION Admin Guide specifying this as well. I will update the docstring of from_remote with an explicit list of requirements for this to work.

Thanks!

yanirmr commented 2 years ago

I'm glad to help.

It is important to note that defining roles is not enough. The project setting should also grant "manager" rights.