Closed
Description
I want to extract users list from azure devOps using but an error appears:
ValueError: API resource location 229a6a53-b428-4ffb-a835-e8f36b5b4b1e is not registered on https://vssps.dev.azure.com/(my Organization).
I have already tried to extract the projects list and extracting descriptors for the specific user so connection is ok.
here is my code:
from azure.devops.connection import Connection
from msrest.authentication import BasicAuthentication
personal_access_token = 'my personal access token'
organization_url = 'https://dev.azure.com/(my Organization)'
credentials = BasicAuthentication('', personal_access_token)
connection = Connection(base_url=organization_url, creds=credentials)
accounts_client = connection.clients_v5_1.get_accounts_client()
get_acc = accounts_client.get_accounts()
for acc in get_acc:
print(acc)
I need to get information about the last access and date created account so maybe another way?