How to get a list of all Azure DevOps project users using REST API with TypeScript
I am developing an Azure extension. I found this documentation for the Azure REST API. I wonder if there is any way to list the users in a project; something like:
export async function getAllProjectMembers(): Promise< foo > {
const projectId = await getCurrentProjectId();
const teamMembers = await getClient(GraphRestClient).listUsers(projectId);
...
return membersInfo;
}
Of course, listUsers() doesn’t actually exist, unfortunately.
I haven’t found anything in MS repo for Azure API for that.
Is there any way to do that? Maybe I missed something in the repo? If not, how can I code the HTTP request in TypeScript?
Read more here: Source link
