How to get user O365 License status via CSOM or REST RRS feed

  • Question

  • I need download a list of sharepoint users, and cross reference them against the O365 User List to check each users license status.

    How do I access the O365 User List (the one from ADMIN, not the SharePoint User List) via CSOM or Rest?

    Wednesday, March 25, 2015 3:30 AM


  • Hi,

    According to your description, my understanding is that you want to get the user in Office 365 Tenant Active Directory list and check the user License status.

    As the user is in Azure AD, so we need to use Azure AD Graph API to get the user information:

    Azure AD Graph API

    We can also get user and check the user license status using SharePoint Online Management Shell like the detailed article below:

    Getting all Licensed Office 365 users with PowerShell


    Best Regards

    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    • Proposed as answer by Eric Tao Friday, April 3, 2015 1:26 AM
    • Marked as answer by Eric Tao Sunday, April 5, 2015 8:33 AM
    Thursday, March 26, 2015 3:31 AM