---
title: "Promote a user to be a site administrator"
method: PUT
path: "/users/{username}/site_admin"
tags: ["enterprise-admin"]
---

# Promote a user to be 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](https://docs.github.com/enterprise-server@3.5/rest/overview/resources-in-the-rest-api#http-verbs)."

## Path parameters

- `username` string, required

## Response `204`

Response

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-4.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-4/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-4/versions/ee6c7a46328e/schema)
