how to identify outlook admin email with python

42 Views Asked by At

How can I verify if an outlook email is an admin without having the password?

Autodiscover doesn't provide the infomation.

import requests
user_agent = 'Microsoft Office/16.0 (Windows NT 10.0; Microsoft Outlook 16.0.12026; Pro)'
headers = {'User-Agent': user_agent, 'Accept': "application/json"}
email = "[email protected]"
r = requests.get('https://outlook.office365.com/autodiscover/autodiscover.json/v1.0/{}?Protocol=autodiscoverv1'.format(email), headers=headers, allow_redirects=False, proxies=proxies)
0

There are 0 best solutions below