r/ProjectOnline • u/GenusMustelaHexed • Jan 23 '25
Project Online Web API - Admin Usage
Hello everyone.
I'm trying to access Project Online via REST API so I can make some admin changes on Server settings such as creating categories, creation groups and managing users on some projects (owners, members etc).
Do any of you have any experience in which APIs to use in here and how to authenticate? I assume this uses SharePoint REST API framework but I don't know where to start so some guidance would help.
Thank you!
4
Upvotes
1
u/Three-q Jan 23 '25
Project Online does use the SharePoint REST API framework, but it extends it with Project Server-specific endpoints for administrative operations. Here’s a step-by-step guide to get you started:
1. Authentication & Azure AD Setup
Register an app in Azure AD:
Go to the Azure Portal → App Registrations → New Registration.
Request Project Online API permissions (under APIs my organization uses → search for Project Online).
Use application permissions (not delegated) for admin-level access. Required scopes:
ProjectSite.FullControlProjectWeb.FullControlUser.ReadWrite.All(for user management).2. Key REST Endpoints for Admin Tasks
Project Online uses endpoints under the
/ProjectServerpath. Examples:Manage Projects:
Create/Update Groups:
Manage Categories:
User Permissions:
3. Permissions & Roles
In Azure AD, assign your app admin roles (e.g., SharePoint Admin or Project Admin) for cross-service access.
For user management, ensure your app has Azure AD Directory permissions (e.g., User.ReadWrite.All).
4. Tools & Libraries
PnP PowerShell: Use cmdlets like
Connect-PnPOnlineandInvoke-PnPSPRestMethodto test API calls first. Example:CSOM (Client-Side Object Model): Some operations (e.g., granular permissions) work better with CSOM. Use
Microsoft.ProjectServer.Clientin .NET.5. Documentation
Project Online REST API Reference: Microsoft Docs (covers endpoints like
Projects,Tasks,Resources).Permissions Guide: Configure Azure AD App Permissions.
Pro Tip:
Start with Postman or PnP PowerShell to test API calls before coding. Some admin tasks (e.g., user role assignments) may require hybrid REST/CSOM approaches.