[Feature request] Have incus list --all-projects work for restricted users

I currently have a few users which are restricted to several different projects. It would be very useful for incus list --all-projects to list all instances available in the projects those users have access to.

victoitor@bastion:~$ incus project list
+---------------+--------+----------+-----------------+-----------------+----------+---------------+----------------------------------------+---------+
|     NAME      | IMAGES | PROFILES | STORAGE VOLUMES | STORAGE BUCKETS | NETWORKS | NETWORK ZONES |              DESCRIPTION               | USED BY |
+---------------+--------+----------+-----------------+-----------------+----------+---------------+----------------------------------------+---------+
| aux (current) | YES    | YES      | YES             | YES             | NO       | NO            | Containers com baixo recurso           | 4       |
+---------------+--------+----------+-----------------+-----------------+----------+---------------+----------------------------------------+---------+
| compartilhado | YES    | YES      | YES             | YES             | NO       | NO            | Experimentos - máquinas compartilhadas | 7       |
+---------------+--------+----------+-----------------+-----------------+----------+---------------+----------------------------------------+---------+
| dedicado      | YES    | YES      | YES             | YES             | NO       | NO            | Experimentos - máquinas dedicadas      | 2       |
+---------------+--------+----------+-----------------+-----------------+----------+---------------+----------------------------------------+---------+
victoitor@bastion:~$ incus list --all-projects
Error: Certificate is restricted

The current alternative is to run incus list --project <project name> for every project the user has access to, which is not ideal.

Yeah, that shouldn’t be horribly difficult to figure it out since we already filter things like incus project list.

Feel free to file something at Issues · lxc/incus · GitHub