Overview
Microsoft Graph API offers a single endpoint to connect to data from various services. Power Automate (earlier MS Flow) enables us to design powerful workflows. Calling the Graph API from Power Automate Flow opens a wide range of possibilities. One scenario could be to get things done with application permissions, which otherwise cannot work under user-delegated permissions.
In the article, we will explore a scenario of calling Graph API from Power Automate Flow.
Prerequisites
Before we proceed, make sure you have below permissions,
- Administrative access to Azure AD of Office 365 tenant
- Permissions to create flow in Power Automate (prior MS Flow)
Action
|
Application permissions
|
List owners
|
Group.Read.All, User.Read.All, Group.Read.All, and User.ReadWrite.All
|
Add member
|
GroupMember.ReadWrite.All, Group.ReadWrite.All, and Directory.ReadWrite.All
|
Build Power Automate Workflow
We will start by building flow.
Test Flow with Soap UI
Download the SoapUI from
here.
- Select Method as Post.
- Specify the endpoint as HTTP POST URL.
- Specify the header as Content-type with value application/json
- In the Body, specify the JSON.
- Click Send.
- Observe the run history of flow.
Summary
Calling the Graph API from Power Automate Flow opens a wide range of possibilities. One scenario could be to get the things done with application permissions, which otherwise cannot work under user delegated permissions. Power automate flow then can be called from an SPFx solution to build more advanced scenarios.