Thought I would add a note here, since I was doing the research anyway. The Beta API still (Q4, 2023) only has Get (GET /directory/subscriptions/
) and List (GET /directory/subscriptions/{id}
) functionality. Useful for reporting, but not for creating anything new so unfortunately no you cannot purchase using Graph.
Purchasing office365 licenses using Microsoft Graph API
Can I purchase office365 licenses with the Microsoft Graph API?
I haven't seen anything in the documentation and the only thing I found on the internet was this old link to stack overflow that says it's not possible - https://stackoverflow.com/questions/42826726/buy-o365-sku-license-via-graph-api/42846931#42846931
Any help will be great!
2 answers
Sort by: Most helpful
-
Matthew Crocker 261 Reputation points
2023-11-24T13:38:46.9133333+00:00 -
PAUL PROMISE DZAHINI 110 Reputation points
2023-11-24T14:16:41.0233333+00:00 The Microsoft Graph API is a powerful tool that allows you to access and modify data across Microsoft 365 services, such as Outlook, OneDrive, Teams, SharePoint, and more.
However, the Microsoft Graph API cannot be used to purchase additional subscriptions or service plans for your tenant. It can only be used to assign existing licenses which have been provisioned in your tenant. Also, there is no public API that supports these sorts of calls.