Add collaborators to a private Qfield cloud instance

Hello everyone,

I’m setting up a private api, everything works fine except when i add a collaborator to a project, my command seems to work from the ownner point of view but when i login as the collaborator, i can’t see the project. Here is my example :

#1 Check the list of collaborator (owner pov)
curl -X GET “http://localhost:8011/api/v1/collaborators/d850b453-de7d-4899-85ef-c8169c84002c/” -H “accept: application/json” -H “Authorization: Token VkNS92bbmWXk3TcGUVLqgw9gNnBZhL6L1KwZ5xdTzKwSL7gOGi6WQlZmNr9coDkfEmLDMo6tVHpj8A3CTTZKqLWfvxieEr8bwnAh”

[]

#2 Add the collaborator “test” as “editor” (owner pov)
curl -X POST “http://localhost:8011/api/v1/collaborators/d850b453-de7d-4899-85ef-c8169c84002c/” -H “accept: application/json” -H “Content-Type: application/json” -H “Authorization: Token VkNS92bbmWXk3TcGUVLqgw9gNnBZhL6L1KwZ5xdTzKwSL7gOGi6WQlZmNr9coDkfEmLDMo6tVHpj8A3CTTZKqLWfvxieEr8bwnAh” -d “{ "collaborator": "test", "role": "editor"}”

{“collaborator”:“test”,“role”:“editor”}

#3 List of projects (“test” pov)
qfieldcloud-cli list-projects
Listing projects…
User does not have any projects yet.

Is something wrong with my command? I’ve tested a similar command with the online api and it worked so what am i missing?


Imported from GitHub discussion by @Celpho on 2022-07-07T13:52:42Z

Please make sure you are using the latest master.

Also, the collaborators API is not used internally by QFieldCloud and I am not sure if it still works fine. If you are interested in further investigation, please contact info at opengis.ch


Imported from GitHub comment by @suricactus on 2022-07-07T21:42:13Z

Yes i’m using the latest master (downloaded the 07/07/2022)

I will contect them to see if they know what’s causing this. (And i will share the solution)

Thank you!


Imported from GitHub comment by @Celpho on 2022-07-08T06:11:15Z

The latest update has fixed the problem, project appears properly now :slight_smile:


Imported from GitHub comment by @Celpho on 2022-08-13T10:28:47Z

Great!


Imported from GitHub comment by @suricactus on 2022-08-13T10:39:21Z