Sharepoint - get list of all users SharePoint using REST API

I know this question was asked long ago but it might help someone in the future.

If you want to get all the users in your Sharepoint site you can use :

/_api/web/siteusers?

If you want to get the properties of the current user on the site then you can use :

/_api/web/currentUser?

I hope this helps.


You may want to take a look at this link: Users, groups, and roles REST API reference. As noted by the comments from @eirikb and @Vadim, the url you are using will never give anything close to a list users.

Tags: