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

Custom Connector to access Graph API

Hi,

 

I've created an enterprise app and have attempted to hook it into a custom connector to access the graph api (and do some awesome stuff with power automate!), but have drawn a blank! I followed the instructions at this link: https://docs.microsoft.com/en-us/connectors/custom-connectors/azure-active-directory-authentication but seem to get a token error when actually using the connector. Looks like I'm getting an invalid authentication token - any ideas? Does this require an Azure AD premium licence at all? Thanks, deacs

 

Annotation 2020-02-14 173553.png

1 ACCEPTED SOLUTION

Accepted Solutions
deacs
Level: Powered On

Re: Custom Connector to access Graph API

Oooh - I only have the one: https://global.consent.azure-apim.net/redirect

I tried adding the msmanaged one as well, but getting the same error.

Does it make a difference if the account that I'm impersonating doesn't have a licence? (sorry new to all this...)

 

Confirmed I have the user_impersonation permission

Annotation 2020-02-17 223002.png

 

Thanks for your help on this one @Yeiner 

View solution in original post

7 REPLIES 7
Microsoft Yeiner
Microsoft

Re: Custom Connector to access Graph API

Hello @deacs I'm going to tested in my environment, in the meantime, could you please let me know if you copied and paste the correct client ID/client secret? client.JPG

deacs
Level: Powered On

Re: Custom Connector to access Graph API

Hello - thanks very much! Yes - pretty sure I did. I took the application id from the properties page and the resource url as https://management.core.windows.net/ - thanks B

 
 
Microsoft Yeiner
Microsoft

Re: Custom Connector to access Graph API

Hello @deacs I did a test everything works fine so I would like to check a couple of things.

 

1- could you please check the Redirect URLs. (should be the same in 2 parts,from azure and from the security part in the custom connector).

2- please check if the Azure Service management permission was added. This is from azure

 

permissions.JPGredirect.JPG

deacs
Level: Powered On

Re: Custom Connector to access Graph API

Oooh - I only have the one: https://global.consent.azure-apim.net/redirect

I tried adding the msmanaged one as well, but getting the same error.

Does it make a difference if the account that I'm impersonating doesn't have a licence? (sorry new to all this...)

 

Confirmed I have the user_impersonation permission

Annotation 2020-02-17 223002.png

 

Thanks for your help on this one @Yeiner 

View solution in original post

Microsoft Yeiner
Microsoft

Re: Custom Connector to access Graph API

Hello @deacs As always it was my pleasure to assist you on this issue 

deacs
Level: Powered On

Re: Custom Connector to access Graph API

Any further ideas on how to resolve?

thanks

Ben

Microsoft Yeiner
Microsoft

Re: Custom Connector to access Graph API

Hello @deacs Is there a way that you can open a ticket? If so please add the link of this forum. 🙂  

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons in April

Read the announcement for more information!

firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (4,909)