How to copy all artifacts from user A to user B ?

Comments

7 comments

  • Official comment
    Joel Stewart

    In order to create a copy of any artifact, it is required that you have Read access to the original artifact. If that is not available for a specific user, any Datameer administrator could perform the copy instead.

    Generally speaking, the copy function copies only the definition of the artifact and not the underlying data for it. 

    Comment actions Permalink
  • Jee

    Hi there,

     

    Thanks for  your reply. But, my senior technical specialist told that when we don't have read permission, we can use REST API curl command to copy folders and files from one user to another user.

    I am not sure the steps which involves to copy folders and files using REST commands. 

    0
    Comment actions Permalink
  • Ron Lim

    To copy a file, you need read access. With regards to REST API, we do not support copying of files. Here's what our REST API supports.

     

    0
    Comment actions Permalink
  • Jee

    I am wondering is there any other way to copy artifacts from one user to another user without using GUI even if we have READ access.

    0
    Comment actions Permalink
  • Alan Mark

    Hi Jee,

    There is no direct copy command.  However you can Read an artifact to get the JSON description, then modify the JSON to give the file a new name, and finally Create a new artifact based on that JSON description.  This would give you a second copy of the file.

    You can find the details on how to Read and Create artifacts using the REST API here: Overview Table REST Commands

    Additionally, I'm wondering if you don't necessarily want a copy of an artifact, but maybe just want to change the ownership of an existing artifact?  You can also do this with the REST API, and the details can be found in the link above.

    0
    Comment actions Permalink
  • Joel Stewart

    Please note that using the REST API to initiate a copy outside of the GUI still requires privileges to read the original artifact. 

    0
    Comment actions Permalink
  • Jee

    Thank you very much for your support. Got it.

    0
    Comment actions Permalink

Please sign in to leave a comment.