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

Making public repos private

I'm our site's GHE appliance administrator, and I'm trying to help clean up our repos.


I can see how to use the API to make another user's public repo's private by generating an impersonation authorization token, and editing the repo with the new token.  However, this only works for active users.


I'd like to do the same with the public repos on our suspended users.  This is do-able via the GUI, but I cannot see the way to do this via the api.  I can delete the user entirely, but I would like to just change their repos to private before we wait a while to delete them to give anyone who is accessing them a chance to notify us.  


Is this possible, or am I going to have to script interacting with the GUI frontend instead?