The article list the steps for reference about how to export all vRA users by using REST API.
VMware Aria Automation 8.16.0
curl -X 'GET' \ 'https://vra.example.com/csp/gateway/am/api/v2/loggedin/user/orgs?pageStart=1&pageLimit=200' \ -H 'accept: */*' \ -H 'Authorization: Bearer #####'The API respond:{ "results": [ { "name": "####", "displayName": "####", "metadata": { "isMsp": "true" }, "id": "########-####-####-####-############ ", "refLink": "/csp/gateway/am/api/orgs/########-####-####-####-############", "parentRefLink": null } ], "totalResults": 1}curl -X 'GET' \ 'https://vra.example.com/csp/gateway/am/api/v2/orgs/########-####-####-####-############ /users?pageStart=1&pageLimit=200' \ -H 'accept: */*' \ -H 'Authorization: Bearer #####'The API respond:{ "results": [ { "user": { "username": "admin", "firstName": "Local", "lastName": "Admin", "domain": "System Domain", "idpId": "########-####-####-####-############", "accessible": false, "acct": "admin", "email": "[email protected]", "userId": "########-####-####-####-############", "userProfile": null }, "orgId": "########-####-####-####-############", "organizationRoles": [], "serviceRoles": [] }, .......... ], "totalResults": ####}