I am an experienced python coder and want to access Confluence via Python. I wrote a simple 2 line script to test that I had access and found that I had not
from atlassian import Confluence
confluence = Confluence(
url='https://my_company.atlassian.net/wiki/home',
username='stephen.ellwood@my_company.com',
password='my_password')
confluence.get_all_spaces(start=0, limit=500, expand=None)
I get the result:
HTTPError: 401 Client Error: Unauthorized for url: https://my_company.atlassian.net/wiki/home/rest/api/space?limit=500
I am using the correct username and password but they are my Microsoft credentials; I do not have a direct confluence account.
Is there a different authentication method for users who use Microsoft Authenticated accounts?