geonode-project icon indicating copy to clipboard operation
geonode-project copied to clipboard

How to set permission to dataset using code in geonode-project?

Open eruiz67 opened this issue 2 years ago • 0 comments

I have created a django-app for my geonode proyect. In that app I have created a dataset using code dataset_instance = resource_manager.ingest(files, resource_type=Dataset, defaults={'owner': owner, 'title': title}) What i need to do is to add permissions to tha dataset Using code. Only the owner and the "INETER" group will be able to see the dataset. The rest of user will not be able to set de dataset. The INETER group will also have "manage" privileges. How can I do it using code. Something like this Captura desde 2023-01-16 12-22-58

eruiz67 avatar Jan 16 '23 17:01 eruiz67