API to differentiate between Personal and Work/School Account

Nirmal Patel 96 Reputation points

Hello, is there any way to tell if the signed account is a personal one or belongs to the category of Work/School through Graph APIs?

Microsoft Graph Calendar API
No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Maggie Rain 161 Reputation points

    Hi there, you can try checking for the userType field of the user resource as for work or school accounts, this will either be member or guest while the personal accounts doesn't have this field. I am may not be 100% the correct approach. You can also consider filling a feature request on Microsoft 365 Developer Platform

    No comments