share#

datarobotx.share(any, emails)#

Shares a drx object with other users. Object can be a dataset, project, or deployment. Access is set to Owner.

Parameters:
  • any (ModelOperator or Deployment or str) – A project or deployment object or a datarobot asset id to share

  • emails (str or list[str]) – An email or list of emails to share a deployment with

Return type:

None

Examples

Share a drx project object with a user

>>> import datarobotx as drx
>>> from datarobot import Project
>>> project = Project.get("123456")
>>> drx.share(project, "user1@datarobot.com")

Share a drx project using the id with multiple users

>>> import datarobotx as drx
>>> drx.share("123456", ["user1@datarobot.com", "user2@datarobot.com"])