dsp-api icon indicating copy to clipboard operation
dsp-api copied to clipboard

BulkImport should set project permissions for resources also when 'root' user is used

Open subotic opened this issue 6 years ago • 7 comments

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?

subotic avatar Mar 28 '19 10:03 subotic

What user are you when you submit the import?

benjamingeer avatar Mar 28 '19 10:03 benjamingeer

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.

subotic avatar Mar 28 '19 10:03 subotic

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.

subotic avatar Mar 28 '19 10:03 subotic

How about creating the data as the project admin?

benjamingeer avatar Mar 28 '19 10:03 benjamingeer

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.

mrivoal avatar Mar 28 '19 10:03 mrivoal

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.

subotic avatar Mar 28 '19 11:03 subotic

You should complain more.

Don't try me! :-)

mrivoal avatar Mar 28 '19 11:03 mrivoal