HTTP/2 302
server: nginx
date: Wed, 03 Sep 2025 10:04:26 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20161114191747
location: https://web.archive.org/web/20161114191747/https://developer.github.com/v3/users/administration/
server-timing: captures_list;dur=10.129880, exclusion.robots;dur=0.024501, exclusion.robots.policy;dur=0.009511, esindex;dur=0.015434, cdx.remote;dur=60.107149, LoadShardBlock;dur=212.634321, PetaboxLoader3.datanode;dur=96.938655, PetaboxLoader3.resolve;dur=58.252897
x-app-server: wwwb-app224
x-ts: 302
x-tr: 306
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app224; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Wed, 03 Sep 2025 10:04:27 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: GitHub.com
x-archive-orig-last-modified: Mon, 14 Nov 2016 05:40:40 GMT
x-archive-orig-access-control-allow-origin: *
x-archive-orig-expires: Mon, 14 Nov 2016 19:27:47 GMT
x-archive-orig-cache-control: max-age=600
x-archive-orig-x-github-request-id: 17EB2F26:0864:15CACFB:582A0DDA
x-archive-orig-content-length: 31276
x-archive-orig-accept-ranges: bytes
x-archive-orig-date: Mon, 14 Nov 2016 19:17:47 GMT
x-archive-orig-via: 1.1 varnish
x-archive-orig-age: 0
x-archive-orig-connection: close
x-archive-orig-x-served-by: cache-sjc3637-SJC
x-archive-orig-x-cache: MISS
x-archive-orig-x-cache-hits: 0
x-archive-orig-x-timer: S1479151067.359851,VS0,VE75
x-archive-orig-vary: Accept-Encoding
x-archive-orig-x-fastly-request-id: 4b0d129bd9395164aaf4e90cf349e460b814ca8c
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Mon, 14 Nov 2016 19:17:47 GMT
link:
; rel="original",
; rel="timemap"; type="application/link-format",
; rel="timegate",
; rel="first memento"; datetime="Thu, 08 Jan 2015 14:13:33 GMT",
; rel="prev memento"; datetime="Mon, 18 Apr 2016 23:49:01 GMT",
; rel="memento"; datetime="Mon, 14 Nov 2016 19:17:47 GMT",
; rel="next memento"; datetime="Sat, 04 Feb 2017 17:37:06 GMT",
; rel="last memento"; datetime="Mon, 04 Jun 2018 12:35:53 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: ARCHIVEIT-771-QUARTERLY-JOB248887-20161114-00002/ARCHIVEIT-771-QUARTERLY-JOB248887-20161114190904034-00019.warc.gz
server-timing: captures_list;dur=0.797410, exclusion.robots;dur=0.033364, exclusion.robots.policy;dur=0.014145, esindex;dur=0.014268, cdx.remote;dur=33.353169, LoadShardBlock;dur=620.945506, PetaboxLoader3.datanode;dur=67.478530, PetaboxLoader3.resolve;dur=632.680763, load_resource;dur=125.490598
x-app-server: wwwb-app224
x-ts: 200
x-tr: 852
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
User Administration | GitHub Developer Guide
Navigate the docs…
API Overview
Media Types
OAuth
OAuth Authorizations API
Other Authentication Methods
Troubleshooting
Pre-release Program
API Previews
Versions
Activity overview
Events
Event Types & Payloads
Feeds
Notifications
Starring
Watching
Gists overview
Comments
Git Data overview
Blobs
Commits
References
Tags
Trees
Integrations
Installations
Issues overview
Assignees
Comments
Events
Labels
Milestones
Timeline
Migration overview
Migrations
Source Imports
Miscellaneous overview
Emojis
Gitignore
Licenses
Markdown
Meta
Rate Limit
Organizations overview
Members
Teams
Webhooks
Projects overview
Cards
Columns
Pull Requests overview
Review Comments
Reactions overview
Commit Comment
Issue
Issue Comment
Pull Request Review Comment
Repositories overview
Branches
Collaborators
Comments
Commits
Contents
Deploy Keys
Deployments
Downloads
Forks
Invitations
Merging
Pages
Releases
Statistics
Statuses
Traffic
Webhooks
Search overview
Repositories
Code
Issues
Users
Legacy Search
Users overview
Emails
Followers
Git SSH Keys
GPG Keys
Administration (Enterprise)
Enterprise overview
Admin Stats
LDAP
License
Management Console
Pre-receive Environments
Pre-receive Hooks
Search Indexing
Organization Administration
Administration (Enterprise)
The User Administration API allows you to promote, demote, suspend, and unsuspend users on a GitHub Enterprise appliance. It is only available to authenticated site administrators. Normal users will receive a 403
response if they try to access it.
Prefix all the endpoints for this API with the following URL:
http(s)://hostname /api/v3
Promote an ordinary user to a site administrator
PUT /users/:username/site_admin
Note that you'll need to set Content-Length
to zero when calling out to this endpoint. For more information, see "HTTP verbs ."
Response
Demote a site administrator to an ordinary user
DELETE /users/:username/site_admin
You can demote any user account except your own.
Response
Suspend a user
PUT /users/:username/suspended
You can suspend any user account except your own.
Note that you'll need to set Content-Length
to zero when calling out to this endpoint. For more information, see "HTTP verbs ."
Response
Unsuspend a user
DELETE /users/:username/suspended
Response
Navigate the docs…
API Overview
Media Types
OAuth
OAuth Authorizations API
Other Authentication Methods
Troubleshooting
Pre-release Program
API Previews
Versions
Activity overview
Events
Event Types & Payloads
Feeds
Notifications
Starring
Watching
Gists overview
Comments
Git Data overview
Blobs
Commits
References
Tags
Trees
Integrations
Installations
Issues overview
Assignees
Comments
Events
Labels
Milestones
Timeline
Migration overview
Migrations
Source Imports
Miscellaneous overview
Emojis
Gitignore
Licenses
Markdown
Meta
Rate Limit
Organizations overview
Members
Teams
Webhooks
Projects overview
Cards
Columns
Pull Requests overview
Review Comments
Reactions overview
Commit Comment
Issue
Issue Comment
Pull Request Review Comment
Repositories overview
Branches
Collaborators
Comments
Commits
Contents
Deploy Keys
Deployments
Downloads
Forks
Invitations
Merging
Pages
Releases
Statistics
Statuses
Traffic
Webhooks
Search overview
Repositories
Code
Issues
Users
Legacy Search
Users overview
Emails
Followers
Git SSH Keys
GPG Keys
Administration (Enterprise)
Enterprise overview
Admin Stats
LDAP
License
Management Console
Pre-receive Environments
Pre-receive Hooks
Search Indexing
Organization Administration