{"id":22769878,"url":"https://github.com/rakheshster/powershell-graphlicensing","last_synced_at":"2025-08-08T17:20:10.459Z","repository":{"id":266892794,"uuid":"860646138","full_name":"rakheshster/PowerShell-GraphLicensing","owner":"rakheshster","description":"Manage Entra ID licensing using Graph \u0026 PowerShell","archived":false,"fork":false,"pushed_at":"2024-10-08T10:07:38.000Z","size":18542,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-29T03:05:57.088Z","etag":null,"topics":["console-tool","entraid","graph","license","license-management","licensing","powershell","toolkit"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rakheshster.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-20T20:54:28.000Z","updated_at":"2024-10-08T10:05:45.000Z","dependencies_parsed_at":"2024-12-10T20:02:23.479Z","dependency_job_id":null,"html_url":"https://github.com/rakheshster/PowerShell-GraphLicensing","commit_stats":null,"previous_names":["rakheshster/powershell-graphlicensing"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/rakheshster/PowerShell-GraphLicensing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakheshster%2FPowerShell-GraphLicensing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakheshster%2FPowerShell-GraphLicensing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakheshster%2FPowerShell-GraphLicensing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakheshster%2FPowerShell-GraphLicensing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rakheshster","download_url":"https://codeload.github.com/rakheshster/PowerShell-GraphLicensing/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakheshster%2FPowerShell-GraphLicensing/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269458161,"owners_count":24420368,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-08T02:00:09.200Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["console-tool","entraid","graph","license","license-management","licensing","powershell","toolkit"],"created_at":"2024-12-11T15:16:26.205Z","updated_at":"2025-08-08T17:20:10.410Z","avatar_url":"https://github.com/rakheshster.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Graph Licensing Toolkit\nSource code of a module I created for managing Entra ID licensing via Graph. \n\nYou can install the module [from PowerShell Gallery](https://www.powershellgallery.com/packages/Graph.Licensing/).\n\nTested on macOS, Linux, and Windows with PowerShell 7.4. Should work on other OSes too with PowerShell 7.x and above. It currently has the following cmdlets:\n\n- `Get-MgAssignedLicenses` - view licenses (and plans) assigned to a user or group\n- `Update-MgAssignedLicensePlans` - update the plans of a specific license assigned to a user or group\n- `Add-MgAssignedLicense` - assign a license to a user or group\n- `Get-MgAvailableLicenses` - view all licenses available in the tenant\n\n## Pre-requisite modules\nThis modules depends upon the following. \n\n- \"Microsoft.Graph.Authentication\"\n- \"Microsoft.Graph.Groups\"\n- \"Microsoft.Graph.Users\"\n- \"Microsoft.Graph.Identity.DirectoryManagement\"\n- \"Microsoft.PowerShell.ConsoleGuiTools\"\n\nIf it weren't for these, this module wouldn't exist! Thank you 😍 to the creators of these, especially `Microsoft.PowerShell.ConsoleGuiTools` which is what I use to drive things. 🙏\n\n```\nInstall-Module \"Microsoft.Graph.Authentication\", \"Microsoft.Graph.Groups\", \"Microsoft.Graph.Users\", \"Microsoft.Graph.Identity.DirectoryManagement\", \"Microsoft.PowerShell.ConsoleGuiTools\"\n```\n\n## Screenshots\n\n`Get-MgAvailableLicenses`\n\n![image-20240922013047361](./assets/image-20240922013047361.png)\n\nSelecting one or more of the licenses above (use `SPACE` key to make selections, followed by the `ENTER` key to confirm) will go through each of the selections and first show the users directly assigned to it. \n\n![image-20240922013145072](./assets/image-20240922013145072.png)\n\nFollowed by the groups directly assigned to it. \n\n![image-20240922013401551](./assets/image-20240922013401551.png)\n\nIn either screen (users or groups), selecting one or more entries (use `SPACE` key to make selections, followed by the `ENTER` key to confirm) will then go through each of the selections and show the plans. \n\n![image-20240922013606905](./assets/image-20240922013606905.png)\n\nThere are cmdlets to directly query a group or user rather than go the route above. \n\nIt is also possible to modify the plan assignments. \n\n`Update-MgAssignedLicensePlans -UserPrincipalName $UPN -SkuName $SkuName` or `Update-MgAssignedLicensePlans -GroupName $GroupName -SkuName $SkuName`\n\n![image-20240922014348917](./assets/image-20240922014348917.png)\n\nAfter making the selections:\n\n![image-20240922014422154](./assets/image-20240922014422154.png)\n\nConfirm. Via `Get-MgAssignedLicenses -GroupName $GroupName -SkuName $SkuName` or `Get-MgAssignedLicenses -UserPrincipalName $UPN -SkuName $SkuName`\n\n![image-20240922015413294](./assets/image-20240922015413294.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frakheshster%2Fpowershell-graphlicensing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frakheshster%2Fpowershell-graphlicensing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frakheshster%2Fpowershell-graphlicensing/lists"}