◆Smart Home Ideas Journal

Office 365: Effortlessly Remove Unlicensed Users from GAL

By

Office 365 admins often face the challenge of managing user licenses, especially when dealing with unlicensed users who may have been added to the Global Address List (GAL). Removing unlicensed users from the GAL is a crucial step to maintain the integrity of your directory and optimize license usage. This article guides you through the process of identifying and removing unlicensed users from your Office 365 GAL.

The following steps will help you efficiently manage your Office 365 user licenses and keep your GAL clean. Let's dive into the process, starting with identifying unlicensed users.

Identifying Unlicensed Users in Office 365

Before you can remove unlicensed users from the GAL, you need to identify them. You can use the Office 365 admin center or PowerShell to accomplish this task.

What is Virtualapp/didlogical And is It Safe to Delete It?
What is Virtualapp/didlogical And is It Safe to Delete It?
How to Fix the “There’s a Problem with Your Office License” Error
How to Fix the “There’s a Problem with Your Office License” Error
5 Steps to Find a Job Using LinkedIn
5 Steps to Find a Job Using LinkedIn

To identify unlicensed users using the admin center:

  1. Sign in to the Office 365 admin center.
  2. Navigate to the Show all option in the left-hand navigation pane, then select Users & groups.
  3. Click on the Licenses tab to view a list of licensed and unlicensed users.

Identifying Unlicensed Users with PowerShell

Alternatively, you can use PowerShell to identify unlicensed users more efficiently, especially if you have a large number of users in your organization.

Windows 11 delete an use account and files process
Windows 11 delete an use account and files process
How To Remove Quick Launch Navigation Bar From SharePointCommunication Site
How To Remove Quick Launch Navigation Bar From SharePointCommunication Site
How to Implement “Logout from All Devices” Securely (Without Breaking User Experience)
How to Implement “Logout from All Devices” Securely (Without Breaking User Experience)

To do this, run the following PowerShell command:

Get-Mailbox -ResultSize Unlimited | Where-Object {$_.WindowsEmailAddress -notlike '*"' -and $_. riesceTenantId -eq $null}

This command retrieves all mailbox-enabled users in your organization and extracts those without an Office 365 license.

Aesthetic Programming, Javascript Development Code, Coding Images, Software Developer Laptop Programming Coding Wallpaper, Software Engineering Aesthetic, Developer Aesthetic, Computer Programming Aesthetic, Programmers Aesthetic, Computer Science Women
Aesthetic Programming, Javascript Development Code, Coding Images, Software Developer Laptop Programming Coding Wallpaper, Software Engineering Aesthetic, Developer Aesthetic, Computer Programming Aesthetic, Programmers Aesthetic, Computer Science Women
How to Fix Microsoft Office Error Code 4vt9f
How to Fix Microsoft Office Error Code 4vt9f
a green cutting board topped with lots of different items next to a keyboard and mouse
a green cutting board topped with lots of different items next to a keyboard and mouse
a computer monitor sitting on top of a black table in front of a dark background
a computer monitor sitting on top of a black table in front of a dark background
a woman is sitting at a table with her hands on her head and two different pictures above her
a woman is sitting at a table with her hands on her head and two different pictures above her
A magia acontece entre o conceito e o clique final. 🖱️✨ Elevando o nível do jogo.
A magia acontece entre o conceito e o clique final. 🖱️✨ Elevando o nível do jogo.

Removing Unlicensed Users from the GAL

Once you have identified the unlicensed users, you can proceed to remove them from the GAL. To do this, you'll need to disable their mailboxes and remove their licenses.

For each unlicensed user, follow these steps:

  1. Sign in to the Office 365 admin center.
  2. Navigate to Show all in the left-hand navigation pane, then select Users & groups.
  3. Find the unlicensed user and click on their email address to open their profile.
  4. In the user's profile page, click on the Disable mailbox option.
  5. Confirm the action and wait for the process to complete.
  6. Once the mailbox is disabled, remove any licenses assigned to the user by clicking on the Licenses tab and selecting Remove licenses.

Removing Unlicensed Users in Bulk using PowerShell

If you have a large number of unlicensed users to remove, performing the task manually can be time-consuming. In this case, using PowerShell can help streamline the process.

the word pages is surrounded by images of people and their laptops, including an iphone
the word pages is surrounded by images of people and their laptops, including an iphone
The Aesthetics of Control - Basajaun Studio
The Aesthetics of Control - Basajaun Studio
How to Choose Between the 32-bit and 64-bit Versions of Office
How to Choose Between the 32-bit and 64-bit Versions of Office
ASP.NET Core - Razor Tag Helpers
ASP.NET Core - Razor Tag Helpers
⚜️POSTCARD : Mid-November ✨ #2024 #November #smile #red #love #nairobi My Lifestyle Meme, Money Calm Meme, Money Over Everything Meme, Money Sleeping Meme, Money Sleep Meme, Life Memes Truths Real, Just God Meme Wallpaper, Black Man Reading Book Meme, The Realest Meme
⚜️POSTCARD : Mid-November ✨ #2024 #November #smile #red #love #nairobi My Lifestyle Meme, Money Calm Meme, Money Over Everything Meme, Money Sleeping Meme, Money Sleep Meme, Life Memes Truths Real, Just God Meme Wallpaper, Black Man Reading Book Meme, The Realest Meme
Glyph launcher error 1034? Try these solutions
Glyph launcher error 1034? Try these solutions
Почему тьюторство — это про «медленно»? Мы живем в мире, где всё нужно «еще вчера». Любая пауза кажется потерей времени, а неопределенность — похожей на смерть. Поэтому, приходя за помощью к тьютору, часто ждут быстрого плана: «Скажите, кто я и куда мне бежать». Но настоящая работа с самоопределением устроена иначе и вот что важно знать до начала работы со мной. 🐢 Тьюторство — это про осознанную медленность. Это не бездействие. Это сознательный отказ от суеты ради качества. Прежде чем р... Videos For Reels, Poor Aesthetic, Crowd Of People, Memories Video, Break The Pattern, Cinematic Video Clips, Soul Leaving Body Video, Cinematic Visuals, Crowd Of People Aesthetic Video
Почему тьюторство — это про «медленно»? Мы живем в мире, где всё нужно «еще вчера». Любая пауза кажется потерей времени, а неопределенность — похожей на смерть. Поэтому, приходя за помощью к тьютору, часто ждут быстрого плана: «Скажите, кто я и куда мне бежать». Но настоящая работа с самоопределением устроена иначе и вот что важно знать до начала работы со мной. 🐢 Тьюторство — это про осознанную медленность. Это не бездействие. Это сознательный отказ от суеты ради качества. Прежде чем р... Videos For Reels, Poor Aesthetic, Crowd Of People, Memories Video, Break The Pattern, Cinematic Video Clips, Soul Leaving Body Video, Cinematic Visuals, Crowd Of People Aesthetic Video
Personal Branding Photography for female entrepreneurs | BYCARLIJN.JPG
Personal Branding Photography for female entrepreneurs | BYCARLIJN.JPG
a person sticking their tongue out and making a funny face
a person sticking their tongue out and making a funny face
a movie poster with an open mouth and the words fomo written on it
a movie poster with an open mouth and the words fomo written on it
a woman taking a selfie in front of a pot with ice cubes on it
a woman taking a selfie in front of a pot with ice cubes on it
the 4 0 gps guide sitting on top of an open laptop computer next to a stack of books
the 4 0 gps guide sitting on top of an open laptop computer next to a stack of books
Postfólio de agosto | clarité — creative studio
Postfólio de agosto | clarité — creative studio

First, obtain the list of unlicensed users identified earlier. Then, run the following commands, adapting them to your environment:

$UnlicensedUsers = Get-Mailbox -ResultSize Unlimited | Where-Object {$_.WindowsEmailAddress -notlike '*"' -and $_. réussitTenantId -eq $null}

foreach ($User in $UnlicensedUsers) { Disable-Mailbox -Identity $User.Name -SoftDeleteSkip evaporated}

foreach ($User in $UnlicensedUsers) { Remove-AzureADUserLicense -ObjectId $User.WindowsEmailAddress}

These commands disable the mailboxes and remove licenses from the unlicensed users in bulk.

Regularly reviewing and managing your Office 365 user licenses helps maintain a clean GAL and optimizes your organization's license usage. Keep in mind that removing users from the GAL does not delete them from Azure Active Directory (Azure AD). To delete a user permanently, you must explicitly delete their Azure AD account.

Remember, effective user license management is an ongoing process. Schedule regular audits to identify and remove unlicensed users from your GAL, ensuring your Office 365 environment remains neat and efficient. By keeping your GAL clean, you'll enhance your organization's productivity and minimize potential licensing issues.