It seems you're facing challenges with app-only authentication for Project Online, particularly in bypassing MFA and accessing Project-specific data. Here are some insights based on your questions:
- App-Only Authentication in Project Online: Project Online does not natively support app-only authentication in Project Permission mode. The permissions required for Project Online (like Project.Read or Project.ReadWrite) are typically granted through delegated permissions, which necessitate user context and may not bypass MFA.
- Success with App-Only Credentials: There are limited documented cases of successfully applying app-only credentials for Project Online access, especially in Project Permission mode. Most implementations require user interaction or delegated permissions, which complicates automation without MFA.
- Alternative Permission Configurations:
- Ensure that the app registration in Azure AD has the correct permissions set. While you mentioned using
Sites.FullControl.All
, Project-specific permissions are often not available for app-only scenarios. - Review Azure AD settings and conditional access policies that might restrict app access. Sometimes, policies may inadvertently block app-only access.
- Consider using the Microsoft Graph API for broader access, but note that it may not cover Project-specific data as you've discovered.
- Ensure that the app registration in Azure AD has the correct permissions set. While you mentioned using
For your specific implementation, it may be beneficial to explore other authentication flows or configurations that align with your automation goals while adhering to the security requirements of Project Online.
References: