I don't know if it's even possible but can we all users who have access to office 365 using code ?

Ideally I need them in a SharePoint hosted app.

1 Answer 1


You can use Graph API to get list of tenant users as described here.

In a nutshell, you call Graph API via REST using https://graph.windows.net/myorganization/users?api-version=1.6.

More details how to configure access to app and authorization & authorization here and here.

  • yet to test it but accept it for now, thank you very much Feb 10, 2016 at 9:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.