question

VelshankarManickavasagam-7410 avatar image
0 Votes"
VelshankarManickavasagam-7410 asked

Is there a way to get license expiry and license assigned date to user from GRAPH REST API

Is there a way to get license expiry date and license assigned date to user (User Assignments) from GRAPH REST API or any other API?

microsoft-graph-identity
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

michev avatar image
0 Votes"
michev answered michev commented

What exactly do you mean by "license expiry date"? Once assigned, a license is valid until you remove it, or the corresponding subscription lapses.
In any case, you can monitor licensing operations via the audit log: https://docs.microsoft.com/en-us/graph/api/directoryaudit-list?view=graph-rest-1.0&tabs=http

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

license expiry date means Subscription End Date only. I want to understand the end date of the subscription.

I am not able to find any licensing operations in Audit Log based on SKuId. Can you explain how to identify the information from the logs?

0 Votes 0 ·
michev avatar image michev VelshankarManickavasagam-7410 ·

The audit log suggestion was in case you are looking for per-user licensing information. There is nothing in the Graph API that shows subscription end date afaik, you can however use good old Get-MsolSubscription for that.

0 Votes 0 ·