如何使用Project Server REST API在另一个用户的时间表上报告实际工作 [英] How to report actual work on another user's timesheet with Project Server REST API

查看:65
本文介绍了如何使用Project Server REST API在另一个用户的时间表上报告实际工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个必须阅读报告时间的Web应用程序从特定数据库并在Project Online报告。我正在使用Project Server 2013
REST API。关键是数据库包含许多用户报告的工作。该应用程序使用用户凭据进行身份验证。但是,REST API允许人们只在
中写实际小时
已验证 用户时间表。那么,我的应用程序如何使用REST API在其他用户时间表中写入
?我是否必须在登录帐户或类似内容中启用委派?如果是这样,如何从
启用委派
Project Server REST API?或者是否可以
冒充其他用户,以便使用
Project Server
REST API?



解决方案


我认为您可以尝试TimeSheet ReadTimesheetByPeriod方法。


通过描述,允许用户接受时间表进行审批。仅当当前用户不是时间表管理器时才适用。全球许可。


有关详细信息,请查看以下链接:


https://msdn.microsoft.com/en-us/library/office/gg200618.aspx


希望它可以帮助你。


最好的问候,


Andy Wu



I'm working on a web application which must read reported hours from a specific database and report them at Project Online. I'm using Project Server 2013 REST API. The point is the database contains work reported by many users. The application uses a user credentials to authenticate. However, the REST API allows one to write actual hours only in the authenticated user timesheets. So, how can my application write in other users timesheets using the REST API? Do I have to enable delegation in the logged in account or something like that? If so, how to enable delegation from Project Server REST API? Or is it possible to impersonate another user in order to write on its timesheets using Project Server REST API?

解决方案

Hi,

I think that you can try TimeSheet.ReadTimesheetByPeriod method.

With the description, allows the user to accept timesheets for approval. Applies only if the current user is not the timesheet manager. Global Permission.

For more information, you can check this link:

https://msdn.microsoft.com/en-us/library/office/gg200618.aspx

Hope it can help you.

Best Regards,

Andy Wu


这篇关于如何使用Project Server REST API在另一个用户的时间表上报告实际工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆