# IRPCWebAccessAdmin.UseExistingWebSite

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Administration API](https://developer.m-files.com/APIs/gRPC-API/admin/index.md) > [Web access administration](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCWebAccessAdmin/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCWebAccessAdmin/UseExistingWebSite/

Badges: `Administration API / specialized` `internal: not for applications` `admin` `session` `idempotent`

Configures an existing IIS web site for M-Files Web.

- **Service:** [Web access administration](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCWebAccessAdmin/index.md) `MFiles.IRPCWebAccessAdmin`
- **gRPC method:** `/MFiles.IRPCWebAccessAdmin/UseExistingWebSite`
- **HTTP (mf-http-grpc):** `POST /grpc/v1/use-existing-web-site`
- **Request:** [`UseExistingWebSiteRequest`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCWebAccessAdmin/UseExistingWebSite/index.md#request)
- **Response:** [`UseExistingWebSiteResponse`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCWebAccessAdmin/UseExistingWebSite/index.md#response)
- **Book and level:** Administration API, specialized
- **Kind:** admin
- **Session:** Required: the session ID from LogIn in the mfiles-session-id-bin metadata.
- **Idempotent:** yes
- **Returns metadata structure version:** no
- **Streaming:** none (unary)

<a id="remarks"></a>

## Remarks

**For M-Files components only.** Used by M-Files Admin. Applications should not call it.
- Changes the IIS configuration of the server computer.
- Requires the system administrator server role (server right `edit_web_access_settings`).
- With `enable_new_web`, the IIS URL Rewrite and Application Request Routing modules must also be
  installed.

<a id="request"></a>

## Request: UseExistingWebSiteRequest

> Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

| Field | Type | Description |
|---|---|---|
| `ads_path_web_site` | `string` | The ADSI path of the web site, from [QueryADSIObjects](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCWebAccessAdmin/QueryADSIObjects/index.md). |
| `enable_new_web` | `bool` | True to set the site up for the new M-Files Web. |
| `ads_web_site_name` | `string` | The name of the web site, used with `enable_new_web`. |

<a id="response"></a>

## Response: UseExistingWebSiteResponse

No fields.
