PLM 360 General Discussion

PLM 360 General Discussion

Active Member
Posts: 15
Registered: ‎09-27-2012
Message 1 of 6 (420 Views)
Accepted Solution

Change owner or add owner by script

420 Views, 5 Replies
12-05-2012 08:20 PM

Hi All,

i want to be able to have an item field (user picklist) called something like "Assinged to" and on creation of that item ownership is changed to the person specified in the Assinged to Field. i wouldnt mind if this person was added to the additional items either just as long as they are considered an owner of the task.

i want this so that when i assign a task to someone others cant see there tasks (permisions "View Records owned by others), this is mostly because i want to clean up the outstanding work section of the home screen. right now everyone can see the task even if they are not responsible for it.

i dont mind if there is a simple answer to this that doesnt need scripting however i dont think there is. 



James Tennent


Product Support
Posts: 226
Registered: ‎02-21-2012
Message 2 of 6 (407 Views)

Re: Change owner or add owner by script

12-07-2012 04:44 PM in reply to: jamest

James - it's not possible to update the owner or add additional owners through scripting currently.  One way we deal with this is like you mentioned - remove the 'View Records Owned by Others' permission from the workpace and have the record creator add specific groups or users to the additonal owners:





Michelle Stone
PLM Product Manager
Autodesk, Inc.
Posts: 217
Registered: ‎10-04-2012
Message 3 of 6 (400 Views)

Re: Change owner or add owner by script

12-09-2012 04:14 AM in reply to: jamest

Hi James,


I'll also need to be bale to have this functionality in the future. Have you posted this proposal in IdeaStation?



Active Member
Posts: 15
Registered: ‎09-27-2012
Message 4 of 6 (382 Views)

Re: Change owner or add owner by script

12-20-2012 09:22 PM in reply to: dkeeley

this has now been added to the idea station, hit the kudos to give it some legs if you like.

New Member
Posts: 1
Registered: ‎08-27-2013
Message 5 of 6 (300 Views)

Re: Change owner or add owner by script

08-27-2013 01:06 PM in reply to: michelle.stone

So if an employee quits and goes to another competing firm, he/she can still access the files as an owner on Autodesk 360? How do I handle this situation?

New Member
Posts: 2
Registered: ‎08-30-2013
Message 6 of 6 (249 Views)

Re: Change owner or add owner by script

09-26-2013 06:07 PM in reply to: jamest

Looks like the idea has been implemented.  I got the following script to update an item's owner by leveraging the Users, ALL by Name picklist in my PROJECT_OWNER field.  The complexity is due to loadUser using the Autodesk ID, but the picklist using user actual names.  The search allows for a first and last name match.


var userName=item.PROJECT_OWNER; // Get the users
var nameArray=userName.split(", "); // Split the name of user in question
var lName=nameArray[0]; // Last name
var fName=nameArray[1]; // First name
var userINFO = Security.searchUsers({lastName:lName, firstName:fName}); //Find the user
item.master.owner = Security.loadUser(userINFO[0].id);  //Changes owner to user.


Kudos to Joe for the jump start in this thread:

Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.