HostWebhook Help Center

Connect Microsoft Entra ID to your flows

Connect the users and groups of your Microsoft 365 or Azure directory, find, create and change users, manage groups and their members, handle licenses and passwords, start a flow when a user or a group changes, and let an AI node change only the groups you choose.

Time about 14 minutesYou need a HostWebhook account and a Microsoft 365 or Azure work or school accountUpdated November 26, 2026

Connect Microsoft Entra ID once, and your flows can find, create and change users, manage groups and their members, handle licenses and passwords, start when a user is created or changed or someone joins a group, and let an AI node change only the groups you choose. It is the cloud directory of Microsoft 365 and Azure. It is not Windows Server Active Directory.

It needs a work or school account.

A personal Microsoft account (outlook.com, hotmail.com) has no directory of users and groups, so it can't connect.

Connect your directory

In HostWebhook, click Settings in the left sidebar, then Credentials, and start a new credential. Choose Microsoft Entra ID and give it a name.

  1. Marker 1: Microsoft Graph access: Read only is the default. It reads users, groups and members, and changes nothing.
  2. Marker 2: The add-ons: Licenses, Password resets and Restore deleted items. Leave them off unless a flow needs them.
  3. Marker 3: Connect Microsoft Entra ID opens Microsoft's own page. HostWebhook never sees your password.
The Microsoft Entra ID credential form with the Connect Microsoft Entra ID button, the Read only level chosen and the three add-ons off

Choose what the connection may do. HostWebhook enforces it itself, before any call to Microsoft: a Read only connection never changes your directory, even if your organization already approved more.

ChoiceWhat it allows
Read onlyReads users, groups and members. Enough for a trigger.
ManageCreates, changes and deletes users and groups.
LicensesAssigns and removes licenses. Each license you assign uses a paid seat, like Microsoft 365 E3. With Read only it can only list them.
Password resetsResets passwords from a flow, like after a help desk ticket. The person must change it when they sign in. Needs Manage.
Restore deleted itemsBrings back a user or group deleted in the last 30 days. Needs Manage.

You can connect in two ways:

Connect MicrosoftUse your own Entra app
It acts asYou, with your Entra roleAn app in your tenant, with only the permissions you give it
Best forTrying it, and flows a person startsTriggers and flows that run on their own
If the person who connected leavesIt stops workingIt keeps working

Click Connect Microsoft Entra ID, sign in with your work account and accept. Microsoft shows the permissions the choice asks for, and HostWebhook lists them too before you click. Then open the credential and click Test connection. It reads one user and one group, and tells you who it is connected as. It never writes.

With Connect Microsoft, you need the role for what you do.

The connection can do what the app allows and what your Entra role allows. To create users you need User Administrator, for groups Groups Administrator, for licenses License Administrator. You don't need Global Administrator, and shouldn't connect with it.

Ask an admin to approve it (first time)

Optional

The first time, an admin of your organization has to approve HostWebhook Entra ID. If you aren't one, Microsoft asks for the approval and HostWebhook says An admin of your organization has to approve HostWebhook Entra ID first. Send this step to your admin.

An admin with the role Cloud Application Administrator, Application Administrator or Privileged Role Administrator opens the same Connect Microsoft Entra ID page and, on Microsoft's screen, ticks Consent on behalf of your organization before accepting. After that, anyone in your company can connect.

  1. Marker 1: The permissions are the ones of the level you chose. Read only asks for three that only read.
  2. Marker 2: Consent on behalf of your organization: the rest of the company won't be asked again.
Microsoft's screen asking an admin to approve HostWebhook Entra ID, with the permissions listed and the box Consent on behalf of your organization ticked

HostWebhook never asks for Directory.*, RoleManagement.* or Sites.*, and none of them is needed.

Use your own Entra app (optional)

Optional

A flow that runs on its own, like a trigger, shouldn't depend on one person staying in the company. Use an app of your own tenant instead:

  1. In Microsoft Entra, open App registrations and click New registration. Choose one organization only, and use the app only for HostWebhook.
  2. Under Certificates and secrets, create a client secret. Write down when it expires: 24 months at most, and Microsoft recommends less than 12. Copy its Value, not its ID.
  3. Under API permissions, click Add a permission, then Microsoft Graph and Application permissions, and add the ones of the level you want. Then click Grant admin consent. A Privileged Role Administrator or a Global Administrator does this last click: a Cloud Application Administrator can't approve application permissions.
LevelApplication permissions
Read onlyUser.Read.All, Group.Read.All, GroupMember.Read.All
ManageUser.ReadWrite.All, Group.ReadWrite.All, GroupMember.ReadWrite.All
LicensesLicenseAssignment.Read.All, and with Manage also LicenseAssignment.ReadWrite.All
Password resetsUser-PasswordProfile.ReadWrite.All
Restore deleted itemsUser.DeleteRestore.All
  1. Marker 1: Application permissions, not delegated: the app acts by itself.
  2. Marker 2: Granted for your organization: without it every call says the app is missing a permission.
The API permissions of an Entra app with the three Read only application permissions of Microsoft Graph and Granted for the organization next to each

Back in HostWebhook, create a Microsoft Entra app credential (the same one SQL Server uses), paste the Tenant ID, the Client ID and the secret's Value, and choose the Microsoft Graph access that matches what you gave the app. Click Test connection.

Give it less if you can.

Instead of the broad User.ReadWrite.All, you can give the fine ones: User.ReadUpdate.All if the app never creates or deletes users, User.EnableDisableAccount.All to switch users on and off, User.RevokeSessions.All to sign them out. When one is missing, HostWebhook names it, and the broader ones that also work.

Find, create and change users

Drop a Microsoft Entra ID node, pick the credential and choose Single operation. The dropdown has the operations in five groups: Users, Manager, Groups, Members and owners, and Passwords and licenses.

  1. Marker 1: Find users: look in name, e-mail and sign-in name.
  2. Marker 2: Filters are a list, not code: Department, Job title, Account enabled, User type and more, each with its own operators.
  3. Marker 3: Fields: pick what comes back. Empty means the usual ones.
The Microsoft Entra ID node with Find users chosen, a search typed in, the filter Department is Sales and the Fields list showing name, sign-in name and department

A user is picked from a list HostWebhook reads from your directory, and you can type an ID or a sign-in name instead, like ana@contoso.com. A guest's sign-in name carries #EXT#, and it works too.

  1. Marker 1: The sign-in name is one field: the alias and the domain, e.g. ana.lopez@contoso.com. Under it, Domains your users already use lists the domains of your tenant: click one to fill in the part after the @.
  2. Marker 2: HostWebhook makes up the password: 24 random characters, and the person must change it when they sign in.
  3. Marker 3: Return the temporary password is off: nobody sees it.
The Create user operation with the display name, the sign-in name typed in one field with the domains your users already use under it, the job title and department, and Return the temporary password off

If you turn Return the temporary password on, it goes to the next steps, like an e-mail, and it stays in the history of this run. Don't keep that run's output longer than you need.

If Microsoft doesn't answer while a user is being created, HostWebhook looks for the sign-in name before trying again, so you never get two users.

Update user changes only what you fill in. Enable or disable user switches the account on or off. A user who is off can't sign in, but the sessions already open last until they expire: turn on Also sign out everywhere to end them. Delete user can be undone for 30 days with Restore deleted user, which needs that add-on.

Manage groups and their members

The group operations pick a group from a list too. Add members takes users by ID or sign-in name, up to 100 at a time (HostWebhook sends them to Microsoft 20 at a time), and tells you which went in, which were already there and which failed (a user that does not exist, e.g. one that was deleted, fails alone: the others go in, and the line names that user).

HostWebhook won't changeWhy
A group that Entra roles can be given toAn admin of Entra decides who gets a role. Use the Entra admin center
A security group with a mailbox, or a distribution listThey belong to Exchange. Use the Exchange admin center
A dynamic group, adding members by handIt adds members by a rule. Change the rule in Entra

The node refuses them before calling Microsoft, and says why.

Remove owner can't take the last owner off a group: a group needs at least one, so add another owner first.

  1. Marker 1: Group: picked from the groups of your directory, with a search.
  2. Marker 2: Members: IDs or sign-in names, up to 100.
The Add members operation with a group picked from the list, two users typed as sign-in names and the result showing one added and one already there

Licenses and passwords (optional)

Optional

These need the add-on of the credential, and Manage for the password. If it hasn't got it, the node says This credential has no Licenses access. Reconnect it with Licenses turned on, e.g. to assign a license. Open the credential and tick the add-on: with Connect Microsoft, in Reconnect, and click Reconnect again; with your own app, in Edit keys and settings, and click Save.

  • List company licenses shows how many were bought, used and are free.
  • Assign license needs the user's usage location, like US, and a free seat. HostWebhook says Set the user's usage location first or No Microsoft 365 E3 licenses are left when one is missing.
  • Reset password gives the user a new random password that they must change when they sign in. It isn't for an AI node: only a flow that a person writes can use it.

Start a flow when a user or a group changes

Add a Trigger node and pick Microsoft Entra ID. Microsoft can't call a URL when your directory changes with the permissions of this integration, so HostWebhook asks Microsoft what changed since the last check, and sends each change to the flow. It writes nothing to your directory. Read only is enough.

  1. Marker 1: What to watch: users, groups or group members.
  2. Marker 2: Events: the ones that belong to what you watch.
  3. Marker 3: Watch fields: only with User updated. Only changes to these fields fire it.
  4. Marker 4: Ignore changes made by this flow: on, so what your own Microsoft Entra ID nodes write doesn't start the flow again.
The Microsoft Entra ID trigger with Users chosen, the events User created and User updated ticked, Watch fields on Department and the Ignore changes made by this flow switch on
WatchEventWhen it fires
UsersUser createdA new user, or a deleted one that was brought back (restored is true)
UsersUser updatedOne of the Watch fields changed
UsersUser deletedA user was deleted. For 30 days it can still be restored
GroupsGroup createdA new group
Group membersMember addedSomeone joined any group, or one of the groups you pick (up to 50)
Group membersMember removedSomeone left a group

You can narrow users by User type (members or guests) and Department.

When everything is set, click Activate. A trigger needs at least one connected node. Activating starts from now: what already happened doesn't fire it. HostWebhook checks every 5 minutes unless you choose otherwise (as often as every minute on a paid plan, every 15 minutes on the Free plan), up to 500 changes per check. Changes can arrive a few minutes late, because Microsoft copies them first.

Changing what the trigger watches, its Watch fields or its groups starts again from now by itself. Changing its events, User type or Department does not: it goes on from where it was, and what happened in the meantime is not lost.

Test push shows an example of each event you picked, with made-up data, and some of your real users or groups if the credential can read them. Nothing is sent and your flow doesn't run.

With Connect Microsoft, the trigger stops if the person who connected leaves.

For a trigger that must keep running, use your own Entra app (step 03).

Use what arrives

Everything the trigger sends is in payload:

User updated
{
"event": "user.updated",
"id": "00000000-0000-4000-8000-0000000000a1",
"displayName": "ZZ Ana Lopez",
"userPrincipalName": "zz.ana@contoso.onmicrosoft.com",
"department": "Sales",
"changedFields": ["department"]
}
Someone joined a group
{
"event": "member.added",
"group": { "id": "00000000-0000-4000-8000-0000000000b1", "displayName": "ZZ Sales team" },
"member": { "id": "00000000-0000-4000-8000-0000000000a1", "type": "user", "displayName": "ZZ Ana Lopez" }
}

Use {{payload.event}} to tell the events apart, {{payload.id}} for a user and {{payload.member.id}} for who joined a group. A deleted user comes with deleted and recoverable, so you can restore them in the next 30 days.

It doesn't fire on what this flow does.

Ignore changes made by this flow is on by default. The Microsoft Entra ID nodes of this flow leave a mark with ids and hashes, no names or e-mails, for up to 49 hours, and the trigger skips the change that matches it. A change made by a person or by another flow still fires it.

Let an AI node use Entra ID (optional)

Optional

In step 04, choose AI toolkit instead of Single operation. The node has 23 tools, like find_entra_users and add_entra_group_members, and 12 of them start blocked. Add them to an AI node from its Tools: Add Tool, then From Workspace.

  1. Marker 1: Groups the AI can change: only these, picked by name and saved by ID. Empty means none.
  2. Marker 2: Fields the AI can see: name, sign-in name, e-mail, job title, department and whether the account is enabled, unless you pick others.
  3. Marker 3: The blocked tools: a blocked tool can't be used here by any AI node or MCP server.
The AI toolkit mode of the Microsoft Entra ID node, with the groups the AI can change, the fields the AI can see and the line saying how many tools are blocked

Seven things are never for an AI.

Resetting a password, deleting a user or a group, switching a user off, signing a user out everywhere, and assigning or removing licenses. They have no tool, not in the AI node and not in MCP. A person can still do them in a flow of their own.

The tools that create or change users, managers, members and owners start blocked, and you turn them on one by one. The tools that change a group, like adding a member, only work on the groups you listed. The names in your directory are data, not instructions, but a model can still be fooled by them: block the tools it doesn't need.

If a flow uses AI (the AI node, Hermes or Claude), the users and groups it reads go to that AI.

Reconnect after a sign-out or a secret change

With Connect Microsoft, if the person who connected leaves, changes their password or loses their role, Microsoft signs the connection out and the nodes say Microsoft signed this connection out, e.g. the person left or changed their password. Reconnect it. The triggers of that credential pause.

  1. Marker 1: The credential is marked Needs reconnect.
  2. Marker 2: Reconnect takes you to OAuth Connection, below. There you can choose another level or add-ons, and its Reconnect opens Microsoft's page again.
The Microsoft Entra ID credential page marked Needs reconnect, with the warning and the Reconnect button

With your own app, create a new secret before the old one expires, open Edit keys and settings (you verify it's you first), paste its Value and click Save.

To change only the level of your own app, for example from Read only to Manage, open Edit keys and settings, choose the new access and leave the secret empty: the secret that is saved stays (nobody can see it, so its box always comes empty). Paste a secret only if the secret, the tenant or the client ID changed. (Microsoft shows a secret only once, so you never need to create a new one just for this.)

After you reconnect, click Activate on each paused trigger: it stays paused until then. A trigger that was paused because Microsoft no longer had the changes (over 7 days) starts again from now, and the changes of that time aren't sent.

To disconnect for good, delete the credential in Settings, Credentials, and remove HostWebhook Entra ID, or your own app, in Microsoft Entra.

Troubleshooting

Your Entra role doesn't allow this. With Connect Microsoft the connection can do what your role allows: creating users needs User Administrator. Ask your Entra admin, or use your own app.

Entra protects this account. An administrator can only be changed by a higher admin role.

The Entra app is missing a permission. With your own app, the line names it, and the broader ones that also work, like User.Create (or User.ReadWrite.All): either one is enough, and Permissions of this choice in the credential lists the broad ones. Add one under API permissions, click Grant admin consent and run the node again. When Microsoft says no, HostWebhook asks Microsoft for a new token on its own, so you don't wait up to an hour for the old one to expire; if it still says it, wait a minute, because Microsoft takes a few seconds to spread a new permission.

Microsoft says the secret is wrong. Paste the secret's Value, not its Secret ID, and check that it hasn't expired.

A user with that sign-in name already exists. Use another one, like ana.lopez@contoso.com.

The domain isn't verified. Use one of your tenant's verified domains.

Microsoft Graph is busy. HostWebhook tries again by itself, waiting for what Microsoft asks, up to 10 seconds. A flow that writes more than 60 times a minute in one organization is told to slow down and tries again.

The trigger paused. Its card says why: Microsoft signed the connection out, an admin has to approve the app, a permission is missing, Microsoft no longer has the changes since the last check, or five checks in a row failed.

A new user takes a few minutes to arrive. Microsoft replicates a change before it shows in the changes list.

Microsoft, SQL Server and Microsoft Entra are trademarks of the Microsoft group of companies.