Community Conundrum 25:Feature Visualization is now live! Read More

Set project's security with DSS API

Level 4
Set project's security with DSS API



Hi,



 I would like to set the project's security settings in automated way during the deployment. Does DSS API support this kind of action? If not, is there any way how to do that? (dssadmin?)



Thanks

0 Kudos
2 Replies
Dataiker
Dataiker
Hi,

It can be done through the API: https://doc.dataiku.com/dss/latest/python-api/rest-api-client/projects.html#dataikuapi.dss.project.DSSProject.get_permissions
0 Kudos
Level 4
Author
I tried it already, but it contain just it did not displayed the already granted group data_admin on the project's Security tab. The owner is there but I was expecting that there will be the list of groups as well.

{u'additionalDashboardUsers': {u'users': []},
u'dashboardAuthorizations': {u'allAuthorized': False,
u'authorizations': ...
u'owner': u'dssetl',
u'permissions': []}

The permissions section does not change if I add new group to the project or modify the existing settings.
0 Kudos
Labels (3)