Skip to content

New command: aad user license list #4502

@milanholemans

Description

@milanholemans

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

m365 aad user license list --userName [email protected]

List license details of a specific user by its ID

m365 aad user license list --userId 59f80e08-24b1-41f8-8586-16765fd830d3

Default properties

  • id
  • skuId
  • skuPartNumber

Additional Info

API docs: https://learn.microsoft.com/en-us/graph/api/user-list-licensedetails?view=graph-rest-1.0&tabs=http

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions