Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 2
Message 1 of 2

Audit Log - Web query and GraphQL query different results

Hi, I'm trying to set up a migration of data from GitHub to an archive - when I look at the API logs in the GitHub GUI I see lots, but when I use GraphQL with my own PAT I only seem to see actions that I've done myself. Is this by design or am I missing something?

 

Thanks!

1 Reply
Community Manager
Message 2 of 2

Re: Audit Log - Web query and GraphQL query different results

Hi @atomray,

 

Thank you for being here! Your GraphQL personal access must have the admin:org scope, or full repo scope. As detailed in this post:

 

 GitHub blog post about the Audit log API:

Grant full permissions to the PAT for both the repository and admin:org

 

 


I hope this helps,
Andrea

Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!