Discover this year's submissions to the Dataiku Frontrunner Awards and give kudos to your favorite use cases and success stories!READ MORE

how to set a profile in create_user

Solved!
tomas
Neuron
Neuron
how to set a profile in create_user
Hi,

the create_user API does not allow us to create a user with a specific Profile. It assigns the Data science license, and if there is no more free license, it fails. How to override it and create for example an "Explorer"?

This does not seems to work:

client.create_user( user , pwd, display_name= user_first_last_name , source_type='LOCAL', groups=user_groups, user_profile = 'EXPLORER' )

Thanks
0 Kudos
1 Solution
Alex_Combessie
Dataiker Alumni
Hi Tomas,

Could you retry with the correct keyword argument "profile", not "user_profile"? See doc: https://doc.dataiku.com/dss/latest/publicapi/client-python/client.html#dataikuapi.dssclient.DSSClient.create_user

If you get another error, could you please post the error message to this thread?

Cheers,

Alex

View solution in original post

0 Kudos
1 Reply
Alex_Combessie
Dataiker Alumni
Hi Tomas,

Could you retry with the correct keyword argument "profile", not "user_profile"? See doc: https://doc.dataiku.com/dss/latest/publicapi/client-python/client.html#dataikuapi.dssclient.DSSClient.create_user

If you get another error, could you please post the error message to this thread?

Cheers,

Alex
0 Kudos

Labels

?
Labels (1)
A banner prompting to get Dataiku