Skip to main content Skip to footer

Search Crosser Knowledge Base

Use Microsoft’s Graph API with Universal Connector

In case you want to build an integration with Microsoft 365, Entra ID or any other Microsoft service that uses the Microsoft Graph API, you might want to give it a shot with the Universal Connector.

In this example you will learn how to build a Module using the Universal Connector to get all users from Entra ID.

1. Create your App registration in Microsoft Entra ID in your Azure environment Save the Application (client) ID for later use.

Crosser Tech tips 87_1

2. Create a Client secret for your App registration

Save the Value for later use

Crosser Tech tips 87_2

3. Set required API permissions for your App registration

Crosser Tech tips 87_3

4. Create OAuth Client Credential Grant in Crosser

Authorization URL = https://login.microsoftonline.com/{TENANT_ID}/oauth2/v2.0/token
Client ID = Application (client) ID
Client Secret = Value
Scope = https://graph.microsoft.com/.default

5. Create and publish Module via Universal Connector

All we need is a basic Module that uses OAuth Client Credential Grant, URL as setting and GET as action.

Crosser Tech tips 87_4

Crosser Tech tips 87_5

Crosser Tech tips 87_6

6. Create your flow

Pick the published module from your library, set the URL to https://graph.microsoft.com/v1.0/users and select the credentials, which you have created in step 4, from your library.

Crosser Tech tips 87_7

You will find your list of users including attributes in the object data.body.value which is collapsed here to not expose sensitive information.

To understand more about the Universal Connector, visit our Advanced Training Sessions.

About the author

David Nienhaus | Senior Solution Engineer

David is a Senior Solution Engineer at Crosser. He has over 15 years experience working with software integration and digitization projects for critical infrastructure.
His engineering background gives him the understanding and focus needed to solve customer use cases in the most efficient and successful way.