cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
yoshihirok
Memorable Member
Memorable Member

How can I use Microsoft Graph API by HTTP action with Auth ?

I want to use Microsoft Graph from Microsoft Frow.

How can I use Microsoft Graph API by HTTP action with Auth ?

and also, How can I get Auth information for using Microsoft Graph API from Microsoft Flow ?

 

My scenario:

Do more by using Microsoft Graph API from Microsoft Flow.

like creating user, group.

 

microsoft_graph.pngIn the content 'Azure Serverless end-to-end with Functions, Logic Apps, and Event Grid'

Jeff Hollan create a user by Microsoft Graph API from Azure Logic Apps.

So I want to do samethins from Microsoft Flow instead of Azure Logic Apps.

 

Regards,

Yoshihiro Kawbata

 

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-yamao-msft
Community Support
Community Support

Hi Yoshihiro,

 

You’ll need to create a Service Principal with access to Graph. The graph website has a walkthrough on building an application with “Background task” access to graph. With that (the App ID, App Secret, etc.) you can use the HTTP action and the advanced properties to enter the authentication.

 

Here’s a sample of what the Auth looks like for the video mentioned.

3.PNG


Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
v-yamao-msft
Community Support
Community Support

Hi Yoshihiro,

 

You’ll need to create a Service Principal with access to Graph. The graph website has a walkthrough on building an application with “Background task” access to graph. With that (the App ID, App Secret, etc.) you can use the HTTP action and the advanced properties to enter the authentication.

 

Here’s a sample of what the Auth looks like for the video mentioned.

3.PNG


Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Thank you @v-yamao-msft for your reply.

 

I will try to create a Service Principal for Microsoft Graph.

 

Regards,

Yoshihiro Kawabata

I am trying to use Graph API but I am struggling with getting a token (and renew the token).  Please could you let me know if you were able to achieve this?  

 

Should I be https://login.microsoftonline.com/cbc8a2f1-a4da-4dac-95b6-221568205810/oauth2/v2.0/token or /authorize? and

Should I put client_id, secret etc. in the body?

 

Thanks

Hello Yoshihiro,

 

If you want to use the Microsoft Graph from Microsoft Flow without writing code, you can take a look at my blog post (september) here https://sergeluca.wordpress.com/2017/09/22/extend-microsoft-flow-with-the-microsoft-graph-and-0-code...

 

Let me know if that helps

 

Kind regards

 

Serge Luca

Microsoft Office Server & Services MVP

Belgium

@sergeluca

Thank @sergeluca

 

Awesome, Your blog for use Microsoft Graph API without code.

I read this blog, and try.

 

Regards,

Yoshihiro Kawabata

 

 

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (958)