← Free Scripts | Identity |PowerShell

Bulk-Add Users to an Entra ID Group from a List of UPNs

Add forty users to a group in one run instead of forty searches. Resolves each UPN, skips existing members, and confirms before it writes anything.

Licence assignments, Conditional Access policies, and user-targeted app deployments all key off group membership, and the portal adds members one at a time. When someone hands you a list of forty people who need a licence, that is forty rounds of search, click, confirm.

This script takes the list instead. Enter a prefix to narrow the group picker, choose the target group, then pick the file of UPNs. Each one is resolved in Entra ID and added to the group, with anyone already a member skipped rather than re-added, and any UPN that does not resolve reported so you can follow it up. It confirms before making changes and prints the group’s full membership at the end.

Uses the Microsoft Graph PowerShell SDK and asks only for GroupMember.ReadWrite.All and User.Read.All. The device equivalent is Add Devices to a Group.

Download Add-UsersToGroup.ps1 from the PowerStacks intune-scripts repository:

GitHub
Entra IDMicrosoft GraphGroups

Want simplified Intune reporting?

PowerStacks BI for Intune and App Store for Intune do the heavy lifting, all inside your own tenant, with nothing leaving it.