This PowerShell script is used to manage Azure AD user licenses. It includes functions to add a license to a user and check if a user has a specific license.
- AzureAD PowerShell module
- Import the AzureAD module:
Import-Module AzureAD
- Connect to Azure AD:
Define the AD group Object ID and License SKUs at the top of the script:
$groupObjectId = "<groupObjectId>"
$F3Sku = "<F3Sku>"
$EMSSku = "<EMSSku>"
Replace <groupObjectId>, <F3Sku>, and <EMSSku> with your actual values.
Then, call the functions as needed.
Note This script assumes that you have the necessary permissions to manage Azure AD user licenses.