Microsoft Entra ID
Microsoft Entra ID connector for providers: manage users, groups, licenses and devices in customer tenants from flows – combined with Equipme Pro.
Path: "Automation" → "Workflows" → flow designer → module "Microsoft Entra ID"
With the Microsoft Entra ID connector, you as a provider manage your customers' Microsoft directories from workflows. Combined with the "Equipme Pro" module, you create accounts for new customer employees, assign licenses and groups, block access during offboarding and check the customer tenants regularly for issues – as a repeatable managed service.
What for?
Onboarding as a service: new customer employee in Pro → create the account in the customer's tenant, assign groups and licenses, create a Temporary Access Pass.
Offboarding as a service: a customer employee leaves → block the account, end sessions, free up licenses.
License management for customers: check available and unused licenses per customer and trigger reorders or cancellations – e.g. as a basis for offers and billing in Pro.
Security checks per customer: detect expiring client secrets, admins without MFA, groups without owners or stale devices and report them to the customer as a ticket or report.
Devices in customer tenants: detect and disable stale devices before they are replaced.
Prerequisites
The enabled automation module
For each customer, a Microsoft account in the customer's tenant with suitable admin roles – depending on the action, e.g. "User Administrator", "Groups Administrator", "License Administrator", "Authentication Administrator", "Application Administrator" or "Privileged Role Administrator"
Consent to the requested permissions in each customer tenant (most permissions require admin consent by the customer)
For examples using customer data, a connection of the equipme connector with the "Equipme Pro" module
Setting up the connection
In the flow designer, drag a component of the "Microsoft Entra ID" module onto the canvas (e.g. GetUser).
Click Connect account.
Sign in with the account in the customer's tenant in the Microsoft sign-in window and accept the requested permissions.
The connection appears with the name of the Microsoft account under "Accounts". Give it a unique name that includes the customer name.
Create a separate connection for each additional customer.
Basic concepts
User ID / Group ID / Device ID / Application ID: most actions expect the object ID from Entra ID. For users, many actions also accept the user principal name (UPN, e.g.
max.muster@customer.com). You pass IDs from previous steps, for example from the result of AddUser or ListUsers.List actions and "Output Type": all List… actions read all entries and offer Output Type ("All items at once", "One item at a time", "First item only", "Store to CSV file") – just like the equipme connector.
OData Filter: ListUsers, ListGroups and ListDevices can be narrowed down with a filter expression, e.g.
accountEnabled eq falseorstartswith(displayName,'Test').Monitor components: the Monitor… actions check the directory and have two outputs: findings (there are hits, with a list and a readable summary) and ok (everything is fine). So you do not need an extra filter in the flow.
Triggers
NewUser
a new user is created (regular polling)
After
NewGroupMember
a member is added to a group (notification from Microsoft)
Group
RemovedGroupMember
a member is removed from a group (notification from Microsoft)
Group
SecretExpiring
a client secret or certificate of an app registration is about to expire or has expired
Check Interval ("Every Minute", "Hourly", "Daily", "Weekly"; default "Daily"), Warning Threshold (Days, default 60), Escalation Threshold (Days, default 30), Include Certificates, Include Service Principals
SecretExpiring has three outputs: warning (below the warning threshold), escalation (below the escalation threshold) and overdue (expired). Each credential is reported only once per stage.
Actions
Users
AddUser
Create a user
Required: User principal name, Mail nickname, Display name, Force change password, Account enabled. Optional: Password (empty = random password, length via "Password length"), Given name, Surname, Job title, Company name, Department, Employee ID, Employee type, Employee hire date, Employee leave date time, Office location, address, Business phone, Mobile phone, Mail, Other mails, Usage Location (country code, required for licenses), Manager ID, Age group, User type ("Member", "Guest")
UpdateUser
Change a user
User ID; the same fields as AddUser; turning "Account enabled" off blocks sign-in
GetUser
Read a user
User ID
ListUsers
List users
OData Filter, After, Output Type
DeleteUser
Delete a user (kept in the recycle bin for 30 days)
User ID
GetUserManager / SetUserManager
Read or set the manager
User ID, Manager ID
ResetUserPassword
Reset the password
User ID, Password (empty = random, default length 10), Force Change Password Next Sign In
RevokeUserSessions
End all sign-in sessions – important during offboarding
User ID
InviteGuest
Invite an external person as a guest
Email Address, Display Name, Redirect URL, Send Invitation Message, Message Body; returns the redemption link
ListUserDevices
List the devices of a user
User ID
Groups
AddGroup
Create a group
Required: Display name, Mail enabled, Mail nickname, Security enabled. Optional: Description, Group types, Visibility ("Private", "Public", "Hidden Membership"), Membership Rule (dynamic group, e.g. user.department -eq "Sales"), Owner IDs
UpdateGroup
Change a group
Group ID, Display name, Description, Mail nickname, Unique name
GetGroup / ListGroups / DeleteGroup
Read, list, delete a group
Group ID; ListGroups with OData Filter, After, Output Type
AddGroupMembers
Add members
Group ID, Users (comma-separated list of user IDs)
RemoveGroupMember
Remove a member
Group, Member (selection list or ID)
ListGroupMembers
List members
Group ID, Output Type
CheckGroupMembership
Check whether a user is a member (including nested groups)
User ID, Group IDs (up to 20)
ListGroupOwners / AddGroupOwner / RemoveGroupOwner
Manage owners
Group ID, User ID
Licenses and roles
ListLicenses
Licenses (SKUs) of the tenant with consumed and available units
Output Type
AssignLicense
Assign licenses (the user needs a usage location)
User ID, SKU IDs, Disabled Plans
RemoveLicense
Remove licenses
User ID, SKU IDs
ListDirectoryRoles
List activated directory roles
Output Type
AssignDirectoryRole / RemoveDirectoryRole
Assign or remove a directory role
Role Template ID, User ID
Authentication
CreateTemporaryAccessPass
Temporary Access Pass for a passwordless first sign-in
User ID, Lifetime (Minutes, default 60), Usable Once, Start Date Time
ListAuthenticationMethods
Registered MFA methods of a user
User ID, Output Type
DeleteAuthenticationMethod
Remove an MFA method (e.g. for a lost smartphone)
User ID, Method Type, Method ID
Devices
AddDevice
Create a device
Account enabled, Display name, Operating system, Operating system version, Profile type, Extension attributes 1–15
UpdateDevice
Change a device
Device ID and the same fields as AddDevice
GetDevice / ListDevices
Read or list devices
ListDevices with OData Filter, Stale For (Days), Output Type
DisableDevice
Disable a device so it can no longer sign in
Device ID
DeleteDevice
Delete a device
Device ID
App registrations
ListApplications / GetApplication
List or read app registrations
Display Name Filter; Application ID or App ID (Client ID)
CreateApplication / UpdateApplication / DeleteApplication
Create, change, delete an app registration
Display Name, Sign In Audience, Notes, Tags, Identifier URIs, Redirect URIs
AddApplicationOwner
Add an owner
Application ID, User ID
AddApplicationSecret
Create a client secret (the value is returned only once)
Application ID, Secret Name, Valid For (Months, default 24) or End Date Time
RemoveApplicationSecret
Remove a client secret
Application ID, Key ID
AddApplicationCertificate
Upload a public certificate
Application ID, Certificate, Certificate Name
ListExpiringSecrets
List secrets and certificates with remaining lifetime
Max Remaining Days, Include Certificates, Include Expired, Include Service Principals, Output Type
Recycle bin
ListDeletedItems
Deleted users, groups or app registrations (kept for 30 days)
Type ("Users", "Groups", "App Registrations"), Output Type
RestoreDeletedItem
Restore a deleted object
Object ID
Checks (Monitor)
All monitor actions have the outputs findings and ok and are well suited to a schedule (Scheduler).
MonitorInactiveUsers
Accounts without a sign-in for X days or without any sign-in
Inactive For (Days) (90), Include Guests, Include Never Signed In
MonitorStaleGuests
Guests with an unredeemed invitation or inactive for a long time
Pending Invitation For (Days) (30), Inactive For (Days) (90)
MonitorUnusedLicenses
Blocked accounts that still have licenses
–
MonitorLicenseStock
Licenses with too few available units
Minimum Available Units (5), SKU Filter
MonitorGroupsWithoutOwner
Groups without an owner
Security Groups Only
MonitorExpiringGroups
Microsoft 365 groups (including Teams) about to expire
Expires Within (Days) (30)
MonitorDeletedItemsPurge
Deleted objects shortly before final deletion
Warn Before Purge (Days) (7)
MonitorAdminRoles
Too many Global Administrators, blocked accounts with roles, guests with admin roles
Max Global Administrators (5)
MonitorMfaRegistration
Users without a registered MFA method
Admins Only
MonitorSyncHealth
Whether synchronization from the on-premises directory (Entra Connect) is still running
Max Sync Age (Hours) (2)
MonitorStaleDevices
Devices without a sign-in for X days
Stale For (Days) (90), Include Disabled
MonitorNewApplications
Newly created app registrations
Created Within (Days) (7)
MonitorExpiringSecrets
Secrets and certificates about to expire
Max Remaining Days (30), Include Certificates, Include Service Principals, Include Expired
Examples
Onboarding for customer employees
Scheduler – hourly (one flow per customer with the connection to their tenant).
Equipme Pro › List Customer Employees – read the customer's employees and use a filter to select new employees without a stored Entra ID identifier (Get Customer Employee Metadata).
Microsoft Entra ID › AddUser – UPN, name, department, job title, Employee ID, the customer's usage location.
Microsoft Entra ID › AddGroupMembers and AssignLicense – the customer's standard groups and licenses.
Microsoft Entra ID › CreateTemporaryAccessPass – pass for the first sign-in.
Equipme Pro › Update Customer Employee Metadata – store the Entra ID object ID on the customer employee.
License check as a managed service
Scheduler – monthly, per customer.
Microsoft Entra ID › MonitorLicenseStock – output findings when available licenses fall below the minimum.
Microsoft Entra ID › MonitorUnusedLicenses – blocked accounts with licenses.
Email › Send Email – report to the customer's account manager (from Get Customer in Equipme Pro), or create a ticket in your own PSA.
Optional: Equipme Pro › Add Billing Item – bill the check as a service ("Fee").
Expiring app secrets at the customer
Microsoft Entra ID › SecretExpiring – Check Interval "Daily", Warning Threshold 60, Escalation Threshold 30, Include Service Principals on.
Output warning → Email › Send Email to the customer.
Outputs escalation and overdue → ticket with high priority in your own PSA or helpdesk.
Notes and limitations
NewUser polls Entra ID at regular intervals. Set "After" on the first start; otherwise the first run also reports existing users.
NewGroupMember and RemovedGroupMember react to notifications from Microsoft and usually fire within a few seconds.
AddUser returns the set or generated password in its result. Only pass it on through secure channels; for the first sign-in, a Temporary Access Pass is usually the better choice.
Licenses can only be assigned if the user has a usage location.
The monitor components for sign-ins and MFA (MonitorInactiveUsers, MonitorStaleGuests, MonitorMfaRegistration) need access to sign-in information; Microsoft usually requires an Entra ID P1 or P2 license for this.
When you test a flow, the modifying actions do not write anything to Entra ID but return sample data.
Deleted objects stay in the recycle bin for 30 days and can be restored with RestoreDeletedItem during this time.
Troubleshooting
Sign-in at "Connect account" fails or asks for admin approval
A Global Administrator of the customer must consent to the requested permissions in the customer tenant.
Error "Insufficient privileges" / "Forbidden"
The signed-in account lacks the required Entra ID role for this action, or the permission was not granted.
AssignLicense fails
The user has no usage location, or no licenses are available (check ListLicenses).
AddUser reports a conflict
The UPN or mail nickname is already taken, also in the recycle bin (ListDeletedItems).
NewUser does not fire
Is the flow started? Is "After" in the future?
Group triggers do not fire
Check the selected group; restart the flow after changes to the account.
You can find the logs of every run under "Insights". For help, contact support.
Frequently asked questions
Can one flow serve several customer tenants?
No, each component uses a permanently selected connection and therefore exactly one tenant. Create one flow per customer; "Clone" copies a template quickly.
How do I link accounts to customer employees in Pro?
After AddUser, store the Entra ID object ID as metadata on the customer employee (Update Customer Employee Metadata). Later flows can then find the account unambiguously.
How do I find the SKU IDs for AssignLicense?
With ListLicenses in the respective customer tenant. The result contains the SKU ID, the name and the available units for every license.
Was this helpful?