How to create shareable preset

TheMLEngineer
Level 2
How to create shareable preset

I want to create a preset that I can use to authenticate a Plugin API in dataiku. How do are go about this? Many users will be authenticating the Plugin API and I will like to create a unique preset for each user. Can I wrap api-key around this preset?

0 Kudos
1 Reply
Turribeach

Here is how you create presets:

https://developer.dataiku.com/latest/api-reference/python/plugins.html#dataikuapi.dss.plugin.DSSPlug...

I am not sure if plugins run under the identify of the user, but you should be able to quickly test:

import dataiku
client = dataiku.api_client()
username = client.get_auth_info()['authIdentifier']

Let us know how it goes.

0 Kudos