API to differentiate between Personal and Work/School Account

Nirmal Patel 101 Reputation points
2021-11-19T05:54:10.113+00:00

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
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,836 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Maggie Rain 161 Reputation points
    2021-11-30T07:51:55.393+00:00

    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

    0 comments No comments