You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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.
Turns out the way I was generating the API token was the culprit. https://support.atlassian.com/organization-administration/docs/manage-an-organization-with-the-admin-apis/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.