I am trying to understand if all the result I get through /users are cloud users? onPremisesSyncEnabled property return true for users that are (cloud + onPrem)

Yash Agrawal 0 Reputation points Microsoft Employee
2024-03-18T13:44:20.9766667+00:00

I need list of users that have cloud account and rest of the users with only onPrem mailbox.

Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Danstan Onyango 3,906 Reputation points Microsoft Employee
    2024-03-26T09:35:37.4033333+00:00

    result I get through /users are cloud users?
    Yes, graph api GET /users will returns both cloud and onprem synced users.

    onPremisesSyncEnabled property return true for users that are (cloud + onPrem)

    I don't see this behaviour. onPremisesSyncEnabled should only be true for onprem synced users.
    Can you compare the other properties like onPremisesLastSyncDateTime for the cloud users that return onPremisesSyncEnabled= true. All these values should be null for cloud only users. If you see them then its very specific to your tenant and you may want to create a support request.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.