I guess that problem is with resource_type that should be EntityType , but honestly I don’t understand what it means. Sorry if it’s basic knowledge. I’m not a dev Could you provide some example, please? Tried to find one in gvm-tools/scripts on gh but didn’t succeed.
I’ve updated gvm-tools and python-gvm to latest release via pip, and switched to enums, using code you provided 1:1 but still getting 400 Error in RESOURCE.
The code looks correct from my side. You have to ensure that both entities - the target and the group - are accessible by the user (gmp-username) running the script.
I’ve also checked logs, but there’s literally nothing except event permission:MESSAGE:2019-09-26 11h28.17 UTC:9625: Permission could not be created by admin
I can create such permission via gui without any problem. Do you have any ideas?