API to differentiate between Personal and Work/School Account

Nirmal Patel 101 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
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

    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