locked
Create Timesheet using PSI web services RRS feed

  • Question

  • Hello All

    I want to create timesheet automatically for all the resources for all the open periods. This task is very simple with help of CreateTimesheet method of Timesheet web service. The problem which I am facing is that when I try to create timesheet for resource other then myself, I got this error

    error id="20010" name="GeneralSecurityAccessDenied" uid="9db92d67-654c-47c5-8107-d9c7b59285d6"

    I have checked in google that this will be some access issues but I am passing my credentials to web service and I am already an administrator. Can anyone tell me how can I fix this issue

    Regards 

    Tuesday, March 22, 2011 7:37 AM

Answers

  • Hello Cybertechsum,

    Even being a administrator also you can not create a time sheet for other resources in your organization.

    So to achieving the same you have two alternatives which are mentioned below.

    1) You can go with Out of box feature available here in project server called "Surrogate Timesheet".

    Detailed explanation you can get it from below article.

    http://office.microsoft.com/en-us/project-server-help/create-and-submit-a-timesheet-on-behalf-of-someone-else-HA010083004.aspx


    2) There is another alternative also, which requires development skills.

    You can develop an "Impersonation Application ",  from which you can impersonate a particular  resource assume "ResA" with "ResB". so after impersonation "ResB" is able to see all the assignment related to "ResA" and on same time can update and submit the tasks and timesheets also related to ResA

    So below is a very good article on Impersonation

    http://msdn.microsoft.com/en-us/library/aa974413%28office.12%29.aspx

    And you can download already developed "Impersonation" application from Project Server 2007 SDK.

    http://www.microsoft.com/downloads/en/details.aspx?familyid=2672f6f9-7028-4b30-99a2-18cb1eed1abe&displaylang=en

    Note: As you said PSI web services, I am assuming your environment PS 2007.


    Sachin Vashishth MCTS

    Tuesday, March 22, 2011 9:26 AM

All replies

  • Hello Cybertechsum,

    Even being a administrator also you can not create a time sheet for other resources in your organization.

    So to achieving the same you have two alternatives which are mentioned below.

    1) You can go with Out of box feature available here in project server called "Surrogate Timesheet".

    Detailed explanation you can get it from below article.

    http://office.microsoft.com/en-us/project-server-help/create-and-submit-a-timesheet-on-behalf-of-someone-else-HA010083004.aspx


    2) There is another alternative also, which requires development skills.

    You can develop an "Impersonation Application ",  from which you can impersonate a particular  resource assume "ResA" with "ResB". so after impersonation "ResB" is able to see all the assignment related to "ResA" and on same time can update and submit the tasks and timesheets also related to ResA

    So below is a very good article on Impersonation

    http://msdn.microsoft.com/en-us/library/aa974413%28office.12%29.aspx

    And you can download already developed "Impersonation" application from Project Server 2007 SDK.

    http://www.microsoft.com/downloads/en/details.aspx?familyid=2672f6f9-7028-4b30-99a2-18cb1eed1abe&displaylang=en

    Note: As you said PSI web services, I am assuming your environment PS 2007.


    Sachin Vashishth MCTS

    Tuesday, March 22, 2011 9:26 AM
  • One additional article on impersonation that I wrote a while back.  Hope it helps.

    http://www.nclarity.net/data/Documentation/impersonation.pdf

     

    Tuesday, March 22, 2011 10:27 AM