cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
LozzieD
Level: Powered On

Azure AD "Get Group" error "resource does not exist" when in a Flow with trigger "HTTP Request"

I have a Flow with the "HTTP Request" trigger.  In the Flow the Azure AD "Get Group" action, which is supplied with a valid group GUID, errors with "resource <GUID> does not exist".

The group GUID is valid because when I put the same Azure AD "Get Group" action in a Flow that has the manual button trigger it works fine and returns the group.

Does a Flow that starts with a "HTTP Request" run in a different context from the "normal" situation of "a Flow runs in the context of the user who triggered it"?

Hence the manual button triggered Flow runs in my security context (if I run it) which has permissions to get the group specified by the GUID.

But the "HTTP Request" triggered Flow runs in the context of some other account which doesn't have access to the group, hence "resource <GUID> does not exist"?   Maybe?

If so, how do I pass the context I want the "HTTP Request" triggered Flow to run in to be able to use the actions like Azure AD "Get Group"?

1 ACCEPTED SOLUTION

Accepted Solutions
LozzieD
Level: Powered On

Re: Azure AD "Get Group" error "resource does not exist" when in a Flow with tri

Ok, my bad.

Somehow, the "Get Group" action in the "HTTP Request" triggered Flow was running the connector in the context of a dfferent user account from another tenancy / domain than the logged on account I was using to craft the Flow. This other account was one I had been using in other windows of the browser and seemed to have been selected for the account to use on the connector of the "Get Group" action.

When I replaced the account used on the connection for the "Get Group" action with the correct account in this tenancy / domain the "HTTP Request" triggered Flow worked fine when called from the "HTTP" Flow.

Apologies for the distraction!

5 REPLIES 5
LozzieD
Level: Powered On

Re: Azure AD "Get Group" error "resource does not exist" when in a Flow with tri

Some more info ...

When there's a SharePoint "Create Item" action in the "HTTP Request" triggered Flow the "created by" column is populated with the user who ran the Flow that called (with the "HTTP" action) the "HTTP Request" triggered Flow.

So the context of the "HTTP Request" triggered Flow appears to be delegated to from the calling Flow.  In this case the user - me - is valid for doing a "Get Group" action as proven when the "Get Group" action is in a "manual button" triggered Flow.

Community Support Team
Community Support Team

Re: Azure AD "Get Group" error "resource does not exist" when in a Flow with tri

Hi @LozzieD,

 

Could you share a screenshot of your flow?

How do you specify the GUID of the group when using the HTTP trigger?

If you get it from the HTTP trigger, please make sure it does return a valid GUID that can be validated by flow.

Please check it on your side.

 

Best regards,

Mabel

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.
LozzieD
Level: Powered On

Re: Azure AD "Get Group" error "resource does not exist" when in a Flow with tri

Hi Mabel,

 

Here's the HTTP Request Flow stripped to the bone ...

 

FailFlow.png

 

Here's the Flow that calls it with an HTTP action, again stripped to the bone ...

 

FailFlowCall.png

 

The group ID is gained from Azure AD here ...

 

GroupGUID.png

 

The Flows fails as follows ...

 

FlowError.png

 

Now here's a clue.  I've implemented the exact same Flow and Flow caller pair in another tenant and it works ok.

 

The tenant it works in ok is monthly updates, and the tenant it doesn't work in is bi-annual updates - I think.

 

Let me look into that and see what other differences there might be.  But perhaps you could try it too and see what you get?

 

LozzieD
Level: Powered On

Re: Azure AD "Get Group" error "resource does not exist" when in a Flow with tri

And for completeness, here's the HTTP request triggered Flow when it works in the other tenancy ...

FlowNoError.png

So to be clear:  The group GUID is simply being copy pasted from the Azure AD portal into the HTTP caller Flow in both the tenant that works, and the tenant that doesn't work.

 

LozzieD
Level: Powered On

Re: Azure AD "Get Group" error "resource does not exist" when in a Flow with tri

Ok, my bad.

Somehow, the "Get Group" action in the "HTTP Request" triggered Flow was running the connector in the context of a dfferent user account from another tenancy / domain than the logged on account I was using to craft the Flow. This other account was one I had been using in other windows of the browser and seemed to have been selected for the account to use on the connector of the "Get Group" action.

When I replaced the account used on the connection for the "Get Group" action with the correct account in this tenancy / domain the "HTTP Request" triggered Flow worked fine when called from the "HTTP" Flow.

Apologies for the distraction!

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 205 members 4,051 guests
Please welcome our newest community members: