Getting list of groups in a project
To get the list of groups in a Azure DevOps Project via API use the below url and in the below url
replace the organization with the actual organization
Link: https://vssps.dev.azure.com/organization/_apis/graph/groups?api-version=5.0-preview.1
When you enter the url on the browser you will get a response like this