web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / create OneNote noteboo...
Power Automate
Unanswered

create OneNote notebook for M365 Group via Graph API in Power Automate (delegated auth)

(1) ShareShare
ReportReport
Posted on by 112

Hi everyone,

I’m working on an automated provisioning flow using Power Automate to streamline group and workspace setup for our Dynamics 365 environment. Here's what the flow currently does:

  1. Creates a Microsoft 365 Group (used by Dynamics 365 for access control).
  2. Creates a Microsoft Teams team associated with that group.
  3. Outlook group gets provisioned automatically when the group is created.
  4. Now I want to create a OneNote notebook associated with the group as well.

To accomplish step 4, I attempted to use the Microsoft Graph API endpoint:

POST https://graph.microsoft.com/v1.0/groups/{group-id}/onenote/notebooks


However, I ran into the following error when executing the request with an app-only token:

The request does not contain a valid authentication token.
To improve the security of our customers' data, this API will no longer support app-only tokens starting from March 31st 2025. Customers may still call these APIs using delegated (app+user) tokens.
Ref: Microsoft Docs – Microsoft Graph Auth

My questions:

  1. How can I adapt my Power Automate flow to support delegated (user+app) authentication when calling this endpoint?

    Currently, everything is running under an application identity without user context.
  2. What is the recommended approach to programmatically create or trigger the creation of a OneNote notebook for a group when using Power Automate?
  3. Is there a workaround or alternate endpoint that supports app-only tokens for OneNote notebook creation, or any way to trigger this indirectly (e.g., through Teams or SharePoint)?
  4. If delegated authentication is the only option, how would that work in a fully automated backend process? Would I need to run the flow with a service account or user context somehow?

Additional Info:

  • App is registered in Azure AD with necessary Graph permissions (Group.ReadWrite.All, Notes.Create, Notes.ReadWrite.All, etc.).
  • All other steps (group creation, Teams creation) work as expected using app-only access token.
  • I want to avoid requiring user interaction (login prompts) in the automated flow.

Would really appreciate any guidance, code samples, or architecture suggestions from anyone who’s tackled a similar scenario.

Thanks in advance!

Categories:
I have the same question (5)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard