Authentication using CSOM with Project Online

How are we to connect to Project Online with CSOM? All the SDK articles do not include any type of authentication. So if we are trying to use the CSOM to list out projects, and I try to create a credentials object and pass that to the ProjectContext.Credentials,
how would this work with the Project Online solution? 
If I try to use the standard network credentials, I get "(403) Forbidden" when I pass in my onmicrosoft.com account and password for credentials. I am the admin on my instance.
So a little help on understanding how to connect remotely to Project Online via CSOM would be great.
Here is a sample PowerShell script I am using. Same result in C# too:
Add-Type -Path 'C:\Sync\Microsoft EPM\Scripts\Microsoft.ProjectServer.Client.dll'
$credentials = Get-Credential "[email protected]"
$pwaPath = "https://bossnunyatest.sharepoint.com/sites/pwa"
$projContext = New-Object Microsoft.ProjectServer.Client.ProjectContext($pwapath)
$projContext.Credentials = $credentials
$projContext.Load($projContext.Projects)
$projContext.ExecuteQuery()
#Receive (403): Forbidden although I am admin
#This works fine against OnPrem
$projContext.Projects|select Id,Name
Thanks,
Kirk

Project Online is a part of SharePoint. Programmatically accessing Project Online uses the procedures that are described in the Office and SharePoint app development SDK; see
Build apps for SharePoint.  PowerShell can be used to administer Project Server 2013 (Windows
PowerShell cmdlets for Project Server 2013); I don't know of a way that PowerShell could be used with the CSOM for Project Online.
App development with the CSOM requires Visual Studio 2012 with the Office and SharePoint tools and other client components installed. See
How to: Set up an environment for developing apps for SharePoint on Office 365. The simplest way to start is to create a SharePoint-hosted app; the other app types require using
OAuth. The procedures for Project Online are essentially the same as described in How to: Create a basic SharePoint-hosted app, except you'd provide the URL of your PWA site
instead of the URL for SharePoint, and instead of the SP.ClientContext, you use
$(document).ready(function () {
var projContext = PS.ProjectContext.get_current();
var pwaWeb = projContext.get_web();
... and in the Default.aspx page, set a reference to PS.js, e.g.
<script type="text/javascript" src="/_layouts/15/ps.debug.js"></script>
Jim Corbin [MSFT]

Similar Messages

  • How to use PSI with Project online 2013

    There are some entities in project server that we cant interact with using Client side object model like views etc. We need to use PSI for them.
    If not, Is there any other approach to get entities such as views.

    Hello,
    You can use the PSI, this link for SharePoint Online claims auth will help you authenticate - this helped us :)
    http://msdn.microsoft.com/en-us/library/office/hh147177(v=office.14).aspx
    Paul
    Paul Mather | Twitter |
    http://pwmather.wordpress.com | CPS

  • Can Project Lite be used with "Project Online with Project Pro for O365"

    Hello MS Support,
    I am aware that Project Lite does not functions as a stand alone, it either works with Project Online or Project Server. However, I wanted to check and be very sure before buying, if Project Lite will work equivalently well with "Project Online with
    Project Pro for O365".
    Project Lite:
    https://products.office.com/en-IN/project/compare-microsoft-project-management-software
    Project Online with Project Pro for Office 365:
    https://products.office.com/en-us/project/project-online-with-project-pro-for-office-365
    Prompt reply will be a great help.
    Regards,
    Urvashi

    Urvashi:
    Project Lite grants access to update timesheets and tasks only. You cannot use Project Pro to connect to Project Online with this license. Everyone who manages schedules using Project Professional or Project Pro for Office 365 must have a full license for
    Project Online and a license for Project Pro. Project Lite is not a license that applies to on-premises installations. For that you acquire a different type of license.
    Gary Chefetz, MCITP, MCP, MVP msProjectExperts
    Project and Project ServerFAQs

  • Project working with Project Online in Office 365

    Hello,
    My question is related to project working and using Project Online to track projects.
    * Can I use a single "Project Online with Project Pro for Office 365" subscription for tracking and creating reports about all project sites and their tasks in Office 365?
    Meaning, if we have multiple projects designed in Project Pro and then uploaded directly to Office 365, can we gather the task, resource and progress information from these projects (created directly to Office 365) in a Project Online overview? One person
    using Project Online to oversee multiple projects, others uploading their projects and changing task information in Office 365 to a SharePoint site with Project Pro and Office 365 subscriptions.
    We want to have one person with Project Online overseeing the progress and create reports on all projects that have been uploaded to Office 365 (Project Portfolio Management), but not creating new projects. Is this possible with just one Project Online subscription?
    The other users would all have an Office 365 Enterprise 3/4 subscription for accessing Office 365, collaborating and updating their tasks. Project managers would have a Project Pro subscription for creating and uploading projects to Office 365.
    Thank you in advance.

    Helen,
    Your question is slightly confusing, so let me try and say it this way: 
    1) Your PMs (multiple) will use Project Pro, to create and publish plans to Project Online
    2) You will have one user who will 'administer' Project Online and create reports etc.,
    3) You will not have any other users access Project Online
    4) I am not sure about you 'SharePoint' comment--so excluding this.
    The problem is that, Project Pro+Office 365 does not necessarily give you access to Project Online. This combination is more useful when you are using just Project Pro or using project Pro to sync plans with Task lists on SharePoint Site. Plans that are
    uploaded this way will NOT appear in Project Online. So, the person who has the Project Online license will not have any data to report on.
    Having said that, here are few options:
    1) Stick with Project Pro +Office 365. Team Members can access "Task" lists in SharePoint Sites. In this scenario, Reporting will be somewhat complex, because each site is its own, and you might have to customize to be able to report across multiple sites. 
    2) If you want an easier Project Portfolio Management, Project Online is better. However, in this case, your PMs need to get Project Online with
    Project Pro for Office 365 which will allow them to publish plans to Project Online. Then your user with project Online license can generate reports for the portfolio easily. In this scenario, if you want team members to be able to submit timesheets,
    work with documents etc., you might want to look into getting the Project Lite for them (http://blogs.office.com/2014/03/31/project-lite-may-1st/)
    Hope it helps.
    Prasanna Adavi,PMP,MCTS,MCITP,MCT http://thinkepm.blogspot.com

  • Using ADI with Projects

    Could anyone point me to any information on using ADI with Project Accounting in 11i

    Ross
    What sort of information are you looking for? Contact me at [email protected]

  • Javascript error on - Help - Learn how to use Numbers with this online...

    I am trying to find out more about Numbers. I am using iTunes 9.1.1 on a Vista PC. I get a Javascript error in Internet Explorer 8 when I try to access:
    Help - Learn how to use Numbers with this online resource.
    http://help.apple.com/numbers/1.0
    The link redirects to the following page:
    http://help.apple.com/iwork/safari/interface/#tan727163ed
    The above page is blank except for boxes for Keynote Help, Pages Help, Numbers help, and a blank input field that seems to do nothing. Here is the Javascript error message from Internet Explorer 8:
    Webpage error details
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
    Timestamp: Tue, 1 Jun 2010 20:55:54 UTC
    Message: This command is not supported.
    Line: 1
    Char: 41589
    Code: 0
    URI: http://help.apple.com/iwork/safari/interface/javascript.js

    Link also does not work for me in WIN 7 with IE8. However, it does work in Chrome in WIN 7. It also works in Safari on my G4. Suggest you try Chrome or it may work in another browser like FireFox or Safari in Vista.

  • Project Pro 2013 with Project online

    I want to confirm that Project Pro 2013 can connect to Project online in the same way that Project Pro for O365 does. In other words, is it largely a licensing difference in the way the two products are licensed?

    Hi,
    See my reply about a similar concern: 
    http://social.technet.microsoft.com/Forums/projectserver/en-US/85889598-c54f-4168-a662-91b77211f81f/how-to-work-with-status-date-and-option-reschedule-uncompleted-work-to-start-after-in-project?forum=projectserver2010general
    And a useful reference:
    http://blogs.technet.com/b/nitinsha/archive/2013/06/24/project-online-or-project-server-2013.aspx
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

  • Sub-Project Creation using CSOM in project server 2013

    Hi All,
    We are able to create a project using CSOM,  we would like to create a sub project and template too, however we are unable to set the project type.
    am I missing anything? Any pointer will be helpful.
    Thanks in Advance,
    Ritesh Gade

    As of 12/30/2013, I don't see anything in the REST\CSOM that allows you to create a sub project off a top level project.  At the moment, you can't do this via Client APIs and must use Project\PWA to do it.  You can use this tool to find what
    is supported:
    http://sprest.architectingconnectedsystems.com/
    Chris Givens CEO, Architecting Connected Systems
    Blog Twitter

  • Using iMovie6 with projects on external FW400 and FW800 drives ...SLOW!

    Shouldn't iMovie6 work smoothly with movie projects stored on external Firewire 400 or 800 hard-drives?____ ...or am I expecting too much?!!
    With the FW400 drive, the performance I'm experiencing is unacceptable. It's excruciatingly slow (even simply mouse/slider movements take forever) and the playback is so choppy, it's useless. (this is after converting an iMovie3 project to iMovie6 -- could this be a factor too?__)
    Those on FW800 seem to work better (as they should) but even though the audio seems OK, the video playback is very jerky and it still takes a few seconds for it to respond to any mouse action.
    Is FW400 simply too slow for iMovie?____
    I presume USB2.0 would be just as bad.

    Is FW400 simply too slow for iMovie?
    Both types of FireWire drives should work fine. I'd look for another cause.
    If your camcorder is a Canon, search the forum for how to avoid FireWire conflicts.
    Otherwise, perhaps there's a clue here:
    http://discussions.apple.com/message.jspa?messageID=1852869#1852869
    Try resetting your FireWire ports? Disconnect all FireWire devices, do a Shut Down, disconnect your Mac's power cord from the wall outlet, wait 15 minutes, then reboot.
    Karl

  • What soft do I need to use Project Online?

    I would like to use Project online. What soft do I need to install? 

    Hi,
    You have the choice to install or not MS Project Pro 2013 in order to schedule your project with the Office 2013 Project software. You'll just have after the installation to connect MS Project Pro 2013 to your PWA instance in order to open your projects.
    Note that you might choice not to install MS Project Pro 2013, since you can use the web interface (Project Web Access or PWA) to edit your project plan, evenif the web interface has a few scheduling limitations.
    See reference below:
    http://office.microsoft.com/en-us/project-server-help/get-started-with-project-online-HA102858793.aspx
    http://technet.microsoft.com/en-us/projectserver/fp123552.aspx
    http://ppmblog.org/2013/07/08/project-web-app-versus-project-pro-2013/
    http://technet.microsoft.com/en-us/library/dn217893(v=office.15).aspx
    Hope this helps.
    Guillaume Rouyre - MBA, MCP, MCTS

  • Using third party service to access Project Online data.

    Hi,
    I have read an article: What's new and what's out for developers in Project 2013. There was a paragraph called "Comparing project server on-premises with Project online".
    In that paragraph it is written (in part about Online Project):
    "Can use the PSI, but not supported: no OAuth and no service-to-service connections."
    Does that mean that I will not be able to connect to Project online account from another service to get data say for analysing on a different resource and after it send it back to Project online?
    Thank you,
    Ruslan

    The only open question is what did they mean writing:
    "Can use the PSI, but not supported: no OAuth and no service-to-service connections"
    That's written about Project online
    Does anyone know the answer?
    Thank you

  • Integrate project online with other software

    Hi All,
    Is there any way i can read the projects list and tasks list from MS Projects Online ?
    Can any one point me in right direction ? i have done integration with EWS but finding difficulty with Projects online. 
    Any help is really appreciated.
    Regards,
    Pavan
    Pavi

    Hi Pavi,
    No problem.  You should be able to get a trial up and running very quickly.
    Also, there is a specific Project Online forum at
    https://social.technet.microsoft.com/Forums/projectserver/en-US/home?forum=projectonline though your reporting questions are welcome in here too as they could be considered customisation.
    Ben Howard [MVP] | web |
    blog |
    book | P2O

  • Sync Project Online Security Group to SharePoint Security Groups

    Hi,
    Is there any way to sync prject server security group(Custom) into SharePoint Security Groups.
    My scenario is: I created a document library, I want to apply project server security on it, based on project server security groups, for that currently I created a custom group in sharepoint and manualy added the users into that group. That doesn't looks
    good, because if my project online group will change, than manually I have to change sharepoint group too. So what I want is, that sharepoint group is automatically synced with project online group.
    Or is there any other way to assign project online security in document library?
    Thanks
    PSN

    No there is no workaround other then creating a group on Office 365 server.
    SharePoint Online lets you create security groups via the Admin Overview page
    http://technet.microsoft.com/en-us/magazine/hh395478.aspx
    Just found a 3rd part. check if it can help
    http://en.share-gate.com/blog/migrate-to-office-365-configure-sharepoint-to-use-active-directory
    Active Directory Synchronization: Allows you to sync your Active Directory Objects such as users and groups to your Office 365 account. This is a one-way synchronization, which means you continue to manage users On-Premises, and your changes
    will appear on Office 365 SharePoint. However, authentication and passwords are still managed by Office 365. It will be required for Password Sync and Single Sign On (see below).
    If this helped you resolve your issue, please mark it Answered

  • Any beginners' guide to Project Online?

    Hi all,
    My company has recently subscribed to Office 365 Pro and Project Online was included in the package. From what I can tell, Project Online is a really powerful tool that can be useful in many situations. As someone who has zero experience or exposure
    to Microsoft Project or Project Online, I find it extremely challenging to use it. Thus, I would appreciate your help in pointing me to the right direction in my attempt to learn how to use Project Online. Are there any books that I can refer to get started
    (some sort of beginners' guide would be really useful)?
    Thanks for your help.

    Hello,
    There are lots of really good books and blogs out there. Some links are below.
    A series I wrote myself:
    http://pwmather.wordpress.com/2014/07/22/getting-started-with-projectonline-round-up-ps2013-office365-project-ppm-sharepointonline-pm-sp2013/
    From Microsoft:
    https://support.office.com/client/Get-started-with-Project-Online-e3e5f64f-ada5-4f9d-a578-130b2d4e5f11
    See how you get on with those plus use your favourite search engine - you will find lots!
    Paul
    Paul Mather | Twitter |
    http://pwmather.wordpress.com | CPS |
    MVP | Downloads

  • Project Online vs EPM Live

    Hi there,
               I'm looking for a Project Management software online - Cloud based.
    I came across EPM Live and it seems good. But now Microsoft come out with Project Online which really looks promising.
    I would like to hear from someone who had used any of them before.
    Also any resources or link would be appreciated. Also let me know if you have used  EPM Live before and whats your taught.
    Thanks in Advance

    Patrick:
    Do you want to be on the Microsoft bandwagon, or do you think a niche provider can serve your needs? When you choose Project Online, you are getting an entire platform of services with integration across the Microsoft stack.
    Gary Chefetz, MCITP, MCP, MVP msProjectExperts
    Project and Project ServerFAQs
    Project Server Help BLOG

Maybe you are looking for

  • Need To Create a Calculation

    Hi I am developing a discoverer report, I'm working with Oracle Discoverer 3.1 - User Edition, Version 3.1.26.01 (dce.dll 3.1.83) Oracle End User Layer 3.1.13.0.0.0 I got a column (Open Time) with date and time "DD-Mon-YY HH:MI AM", and I need to cre

  • How do I get the directory name that a class is located in?

    How do I get the directory name that a class is located in? I have a class located under /com/dhcmc and I want to be able to retrieve the "/com/dhcmc" that the class is residing under so that I can then use this directoy name to build a relative path

  • Org structure in query

    Hi, We have main org unit and under that we have so many orgunits like hr ,it,customer support ect. when we go to query and execute we see org structure button at the top if i select org structure i should see only main org unit.But i am seeing main

  • Cannot link through an upload webpage with Internet Explorer using MAC desktop

    Cannot access an upload webpage to upload documents through Internet Explorer using Firefox through my MAC desktop. Tried add on IE Tab but not permitted through Firefox 8.0.1

  • Battery too small for phone?

    Hi! I need some help.<br><br>My sister has a curve (8520). She overcharged her battery, so, of course, it is swollen. We got her a new battery, which now seems to be too small for the phone. The only thing I can think of is that the phone has somehow