If you want to transfer all teams, projects, and datasets owned by one user
to another you can with reassignUser
. To have permission to use
reassignUser
you must be an account admin and be from the same account
as the user who is being reassigned. This is useful if a user leaves your
organization and you want to transfer all of the teams, projects, and
datasets they own to someone else.
reassignUser(from, to)
NULL
if successful
a character of the email address of the user to reassign from
a character of the email address of the user who should be the new owner
The user given in to
will become the owner of all of the teams, projects,
and datasets that were previously owned by the user given in from
.
Reassigning requires confirmation. In an interactive session, you will be
asked to confirm. To avoid that prompt, or to reassign datasets from a
non-interactive session, wrap the call in with_consent()
to give your
permission to reassign