dsp-api
dsp-api copied to clipboard
BulkImport should set project permissions for resources also when 'root' user is used
I've added default permissions for my project, but the BulkImport still only adds the root user as the creator.
Can somebody confirm, that the BulkImporter sets the default permissions correctly?
What user are you when you submit the import?
The root user and this is where the problem lies. He is not part of the project and thus my project permissions are not used.
Hmm, but wouldn't it make sense, to apply the project-specific permissions, even if the root user is creating the data? The data lands in the project-specific graph and belongs to the project. But not even project members have access to it.
How about creating the data as the project admin?
This is what we (@loicjaouen and @gfoo) do here. We create an artificial user who is a project admin in order to import data for a given project.
How about creating the data as the project admin?
The project has no users. But yes, I will have to create one.
@mrivoal You are too patient with us :-) You should complain more. I will see if I can find a way so that it is not necessary to create a user just for import.
You should complain more.
Don't try me! :-)