Attempting to retrieve Org Audit Logs results in a 401

Andrew Gertjejansen
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 25, 2021

I am attempting to retrieve org level audit logs for my org and it 401s. The user I am using has Org and Site admin access and can see the logs in the UI. However the API yields a 401. How do I properly retrieve Org Logs?

 

Here is the cURL command I am using:

 

curl https://api.atlassian.com/admin/v1/orgs/6af71d9a-3f11-4893-b958-4f464491cc51 -H "Authorization: Bearer <api token>"

 

I assumed my org id based on the URI in the browser when navigating to the audit log page. Not clear if that is correct.

1 answer

1 accepted

1 vote
Answer accepted
Andrew Gertjejansen
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 25, 2021

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events