# Direct and security group license assignment report

**URL:** https://forums.powershell.org/t/direct-and-security-group-license-assignment-report/26164
**Category:** PowerShell Help
**Created:** [September 23, 2025, 1:50pm UTC](https://forums.powershell.org/t/direct-and-security-group-license-assignment-report/26164 "2025-09-23T13:50:24Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![wateredland](https://avatars.discourse-cdn.com/v4/letter/w/9de0a6/32.png) [@wateredland](https://forums.powershell.org/u/wateredland)
#### Post date: [September 23, 2025, 1:50pm UTC](https://forums.powershell.org/t/direct-and-security-group-license-assignment-report/26164/1 "2025-09-23T13:50:25Z")

</div>

Good morning,

I am new to this forum and also not a script person. I was told to find users with Direct license and security group license assignments in O365. I have no clue on how to go about it. I am sure there are scripts that have done this before. If you don’t mind sharing that script, I will really appreciate it.

---

<div class="post-metadata">

### Author: ![psdarwin](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/psdarwin/32/2063_2.png) [@psdarwin](https://forums.powershell.org/u/psdarwin)
#### Post date: [September 24, 2025, 1:47pm UTC](https://forums.powershell.org/t/direct-and-security-group-license-assignment-report/26164/2 "2025-09-24T13:47:09Z")

</div>

I have no expertise in the topic of O365 licensing, but a quick internet search turned up this: [Check Microsoft 365 user license is direct assigned or inherited from group - ALI TAJRAN](https://www.alitajran.com/microsoft-365-user-license-direct-assigned-or-inherited-from-group/)

Since this forum is generally about giving help with code you are trying to write, rather than providing completed PowerShell code, I would encourage you to work through that example, so some research, and see if you can make sense of it. Come back and provide the code you have and ask questions, and we will be happy to help you enhance or refine the code.

I would also encourage you to use this as a learning opportunity. Learning PowerShell is likely to enhance your employment opportunities and job enjoyment. You will always benefit from learning to code, far beyond those who prefer using a mouse to do their work 🙂

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex019/uploads/powershell/original/1X/385e4f9fe133561ad30a814262fe0e0ae6bc3ef0.png) [@system](https://forums.powershell.org/u/system)
#### Post date: [October 24, 2025, 1:47pm UTC](https://forums.powershell.org/t/direct-and-security-group-license-assignment-report/26164/3 "2025-10-24T13:47:27Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
