Skip to content

AzureADHelper

Description

PowerShell module for managing and automating tasks in Azure Active Directory.

GitLab Repository

Features

  • Manage Azure AD users, groups, and service principals.
  • Automate license assignments and cleanup tasks.
  • Enable and manage Multi-Factor Authentication (MFA).
  • Synchronize on-premises AD objects with Azure AD.
  • Retrieve and manage inactive users and replication processes.
  • Generate reports and logs for Azure AD objects.

Functions

Connection

  • Connect-EntraAAD: Connects to Azure Active Directory using a service principal.
  • Connect-EntraPowerBI: Connects to Power BI using a service principal.
  • Connect-EntraSPO: Connects to SharePoint Online using a service principal.
  • Connect-EntraTeams: Connects to Microsoft Teams using a service principal.

User Management

  • Enable-EntraMFA: Enables Multi-Factor Authentication (MFA) for a user.
  • Set-EntraLicenseType: Updates the license type for a user in Azure AD.
  • Get-EntraInactiveUsers: Retrieves a list of inactive users in Azure AD.

Group Management

  • Add-ADUserToAzureADGroup: Adds an on-premises AD user to an Azure AD group.
  • Invoke-EntraReplication: Waits for a group or user to synchronize to Azure AD.

Service Principals

  • New-EntraServicePrincipal: Creates a new service principal in Azure AD.
  • Remove-EntraServicePrincipal: Removes a service principal and associated PasswordState entries.
  • New-ServicePrincipalCertificate: Creates a new certificate for a service principal.

License Management

  • Invoke-EntraE1LicenseCleanup: Removes users from E1 license groups in Active Directory.

Reporting and Utilities

  • Get-EntraGraphAuthorizationHeader: Retrieves an authorization header for Microsoft Graph using a service principal.

Roadmap

  • Add more functions for advanced Azure AD automation.
  • Enhance reporting capabilities with additional data exports.
  • Integrate with other modules for broader automation workflows.

Changelog

  • 22/11/2019: Initial release of the module.
  • 31/03/2025: Added new functions and updated documentation.