Usage
m365 aad user license list [options]
Description
Lists the license details for a given user
Options
| Option |
Description |
--userId [userId] |
The ID of the user. Specify either userId or userName but not both. |
--userName [userName] |
User principal name of the user. Specify either userId or userName but not both. |
Remarks
Don't specify any option to list license details of the current user.
Examples
List license details of the current logged in user
m365 aad user license list
List license details of a specific user by its UPN
List license details of a specific user by its ID
m365 aad user license list --userId 59f80e08-24b1-41f8-8586-16765fd830d3
Default properties
Additional Info
API docs: https://learn.microsoft.com/en-us/graph/api/user-list-licensedetails?view=graph-rest-1.0&tabs=http
Usage
m365 aad user license list [options]
Description
Lists the license details for a given user
Options
--userId [userId]userIdoruserNamebut not both.--userName [userName]userIdoruserNamebut not both.Remarks
Don't specify any option to list license details of the current user.
Examples
List license details of the current logged in user
List license details of a specific user by its UPN
List license details of a specific user by its ID
Default properties
Additional Info
API docs: https://learn.microsoft.com/en-us/graph/api/user-list-licensedetails?view=graph-rest-1.0&tabs=http