When you share a project, you can assign Read and Write permissions to other users. But there are certain tasks that have to be performed by the owner of the project. There are times when the owner is not available. Follow these steps to change ownership.
This process requires the SAS Viya command line interface (CLI). See Command-Line Interface: Overview in SAS Viya Platform: Using the Command-Line Interface for instructions for getting this CLI set up on your deployment before starting this task.
This opens a message stating that the project is being prepared for export. When it is ready, you are prompted to specify the location on your hard drive to download the project.
./sas-viya plugins install --repo SAS common-analytics
./sas-viya common-analytics project change-user --source projectname.zip --user userid1
In this example, projectname.zip is the name of the project ZIP file and userid1 is the ID for the user who you want to transfer ownership.
When the command completes, you have a new ZIP file with the name projectname_userid1.zip.
The project is an exact copy of the original project, except that the ownership has changed.