# Using MS Graph API with Users/Groups

**URL:** <https://forum.novacura.com/t/using-ms-graph-api-with-users-groups/521>\
**Category:** Flow Classic\
**Tags:** studio-or-server, rest-connector\
**Created:** [October 20, 2023, 8:51am UTC](https://forum.novacura.com/t/using-ms-graph-api-with-users-groups/521 "2023-10-20T08:51:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mew](https://avatars.discourse-cdn.com/v4/letter/m/7C9FD7/32.png) [@mew](https://forum.novacura.com/u/mew)\
**Post date:** [October 20, 2023, 8:51am UTC](https://forum.novacura.com/t/using-ms-graph-api-with-users-groups/521/1 "2023-10-20T08:51:15Z")

</div>

Hi. Does anyone have any experience using the REST Service connector with Microsoft Graph API for accessing the Azure AD?

I have tried to import the Outlook Attachment app from Marketplace, but having some trouble getting that to work as well.

It seems there is a BadGateway errror, but not sure what’s wrong.

The flow environment is working with Azure AD for Active Directory Sync without any issues.

---

<div class="post-metadata">

**Author:** ![Lloyd](https://avatars.discourse-cdn.com/v4/letter/l/7C9FD7/32.png) [@Lloyd](https://forum.novacura.com/u/Lloyd)\
**Post date:** [October 23, 2023, 2:42pm UTC](https://forum.novacura.com/t/using-ms-graph-api-with-users-groups/521/2 "2023-10-23T14:42:04Z")

</div>

Hello Mahesh,

We have developed apps with MS Graph API and the error you provided seems to be related to a networking issue, the Connector is unable to resolve the Graph API URL.

Do you have any issues using REST with any other external API?

Kind regards  
Lloyd

---

<div class="post-metadata">

**Author:** ![mew](https://avatars.discourse-cdn.com/v4/letter/m/7C9FD7/32.png) [@mew](https://forum.novacura.com/u/mew)\
**Post date:** [October 24, 2023, 10:17am UTC](https://forum.novacura.com/t/using-ms-graph-api-with-users-groups/521/3 "2023-10-24T10:17:27Z")

</div>

Hi Lloyd,

We haven’t really used REST API connector much before. We tested it a few years ago, but not recently. I will try to check with some different rest apis.

I got above error when I tried to run the flow via old Webclient. We are now trying it with the new webclient and getting a different error. Novacura has given us some suggestions to try, so we are testing that now.

Regards,  
Mahesh

---

<div class="post-metadata">

**Author:** ![mew](https://avatars.discourse-cdn.com/v4/letter/m/7C9FD7/32.png) [@mew](https://forum.novacura.com/u/mew)\
**Post date:** [November 3, 2023, 1:31pm UTC](https://forum.novacura.com/t/using-ms-graph-api-with-users-groups/521/4 "2023-11-03T13:31:51Z")

</div>

We have gotten the Graph APIs to work with Users and now trying to see how it works with the Graph API pagination. It seems when I fetch users, even with a filter, I need to set a $top value to fetch a limited number of records. Then we get the nextlink which should be used to fetch the next page.

I have seen in the documentation that they recommend using the link directly. Has anyone tried this? is there way to define a operation where we can pass the entire url instead of calling a defined operation with parameters?

---

<div class="post-metadata">

**Author:** ![OlaCarlander](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.novacura.com/olacarlander/32/205_2.png) [@OlaCarlander](https://forum.novacura.com/u/OlaCarlander)\
**Post date:** [November 5, 2023, 5:57pm UTC](https://forum.novacura.com/t/using-ms-graph-api-with-users-groups/521/5 "2023-11-05T17:57:02Z")

</div>

Been a while since I did something against graph, but looking back this is how I did it back then:  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/novacuratalk/original/1X/919ce8db66aecd3c7dc06b9b60b6fe615e6a0b19.png).

So two operations, one for the first and one for potentially all others with a variable path.

---

<div class="post-metadata">

**Author:** ![mew](https://avatars.discourse-cdn.com/v4/letter/m/7C9FD7/32.png) [@mew](https://forum.novacura.com/u/mew)\
**Post date:** [November 6, 2023, 9:05am UTC](https://forum.novacura.com/t/using-ms-graph-api-with-users-groups/521/6 "2023-11-06T09:05:29Z")

</div>

Thanks Ola. I have tried this and it seems to be working!
