Skip to content
Azure Active Directory

How to use Azure Active Directory

Sales & CRMCost: 1 credit per runTop 100 · #64Full guide

What it is for

The Azure Active Directory (Microsoft Entra ID) component lets you manage your organization's users, groups and licenses from flooows. Use it to automate employee onboarding and offboarding, assign licenses, add people to groups or revoke sessions during a security incident.

New User, New Group and New Deleted User are polling-based: flooows checks the directory every few minutes and starts the flow for each new item.

Set up the connection

Authentication type: OAuth 2.0 (sign in with your account)

  1. 1Add an Azure Active Directory step and click "Connect".
  2. 2In the Permissions dropdown pick the access level: read only, user management, user and group management, or full management with licenses. Each level includes the previous ones.
  3. 3Sign in with an account that has an admin role in Entra ID and accept the permissions; many require admin consent.
  4. 4If you use your own Azure app, register it, add the redirect URL shown by flooows and grant the full set of Microsoft Graph delegated permissions (User.ReadWrite.All, Group.ReadWrite.All, Directory.Read.All, etc.).

Credentials are stored encrypted in your isolated database, in Spain, and are never shown in plain text.

How to use it in a flow

  • Create User: fill in Display Name, User Principal Name (sign-in email), Mail Nickname and Password; tick Force Password Change on Next Sign-in for new hires.
  • Add Member to Group: pick the Group and the Member, for example the user just created, mapped from the previous step.
  • Add or Remove User License: select the User and the licenses in Add Licenses or Remove Licenses.
  • Update User: change Job Title, Mobile Phone or Account Enabled; set Account Enabled to false to block an account at offboarding.
  • Revoke Sign-in Session: signs the user out of all active sessions.

Tips

  • •Choose the lowest permission level the flow needs.
  • •Combine New User with Add Member to Group for automatic onboarding.
  • •Use List Users with Filter to find users by department or status.

Triggers (3)

Events that can start a flow. Expand each one to see its fields.

New Deleted UserPeriodic check0 fields

No fields to configure.

New GroupPeriodic check0 fields

No fields to configure.

New UserPeriodic check0 fields

No fields to configure.

Actions (17)

Operations available as flow steps. Expand each one to see its fields.

Add Member to Group2 fields
FieldTypeRequired
GroupList (from your account)Yes
MemberList (from your account)Yes
Add or Remove User License3 fields
FieldTypeRequired
UserList (from your account)Yes
Add LicensesJSONNo
Remove LicensesJSONNo
Create Group5 fields
FieldTypeRequired
Display NameTextYes
DescriptionTextNo
Mail NicknameTextYes
Mail EnabledYes / NoNo
Security EnabledYes / NoNo
Create User12 fields
FieldTypeRequired
Display NameTextYes
User Principal NameTextYes
Mail NicknameTextYes
PasswordTextYes
Force Password Change on Next Sign-inYes / NoNo
Account EnabledYes / NoNo
Given NameTextNo
SurnameTextNo
Job TitleTextNo
MailTextNo
Mobile PhoneTextNo
Usage LocationTextNo
Delete Group1 fields
FieldTypeRequired
GroupList (from your account)Yes
Delete User1 fields
FieldTypeRequired
UserList (from your account)Yes
Get Enabled Users1 fields
FieldTypeRequired
TopNumberNo
Get Group by ID1 fields
FieldTypeRequired
GroupList (from your account)Yes
Get Group Custom Attributes1 fields
FieldTypeRequired
GroupList (from your account)Yes
Get User by ID1 fields
FieldTypeRequired
UserList (from your account)Yes
List Enabled Users1 fields
FieldTypeRequired
Page SizeNumberNo
List Group Members2 fields
FieldTypeRequired
GroupList (from your account)Yes
TopNumberNo
List Users2 fields
FieldTypeRequired
TopNumberNo
FilterTextNo
Reset Custom Attributes3 fields
FieldTypeRequired
Resource TypeFixed listYes
ResourceList (from your account)Yes
Extension Property NamesTextNo
Revoke Sign-in Session1 fields
FieldTypeRequired
UserList (from your account)Yes
Update User8 fields
FieldTypeRequired
UserList (from your account)Yes
Display NameTextNo
Given NameTextNo
SurnameTextNo
Job TitleTextNo
MailTextNo
Mobile PhoneTextNo
Account EnabledYes / NoNo
Custom API Call10 fields
FieldTypeRequired
urlDynamic fieldsYes
MethodFixed listYes
HeadersKey / value pairsNo
Query ParametersKey / value pairsNo
Body TypeList (from your account)No
BodyDynamic fieldsNo
Response is BinaryYes / NoNo
Return Error as OutputYes / NoNo
TimeoutNumberNo
Follow redirectsYes / NoNo

Common errors

Insufficient privileges.

Reconnect with a higher Permissions level or ask a global admin to grant consent.

License assignment fails.

The user needs a usageLocation set and there must be free licenses.

The token stops working.

Reconnect the account.

Field types

"List (from your account)" loads options from your connected account; "Dynamic fields" appear depending on earlier choices; in any field you can insert data from previous steps with the data selector (e.g. {{trigger.email}}). More about data between steps