How to Programmatically set Project Owner?

J

Jabez Kurian

Hi folks,

Would require your assistance in setting up the project owner
programmatically.

Problem: After migrating and publishing of projects (more than 500), the
user who has migrated and published the project, has become the project
owner. Currently we have to edit each project through PWA and change the
project owner.???

I am having the list of projects and their actual owners. I would like to
read this text file and programmatically update the project owners through
PSI.

Please suggest / provide code to achieve this task.

Thanks in advance.
 
R

Rod Gill

This should only be a once off thing, so wouldn't it be much quicker to get
the PMs to manually assign themselves, even for 500 projects?

--

Rod Gill
Microsoft MVP for Project

Author of the only book on Project VBA, see:
http://www.projectvbabook.com
 
S

Stephen Sanderlin

You'll want to retrieve the ProjectDataSet for the project using
ReadProject(), modify its Project.ProjectOwnerID, and use
QueueUpdateProject() to send the update to the PSI. Refer to the SDK for
more details.

--

Stephen Sanderlin

Principal Consultant

MSProjectExperts



For Project Server Consulting: http://www.msprojectexperts.com

For Project Server Training: http://www.projectservertraining.com



Read my blog at: http://www.projectserverhelp.com/

Join the community at: http://forums.epmfaq.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top