---
title: "GET /v1/projects/{projectsId}/locations/{locationsId}/servers/{serversId}/users"
method: GET
path: "/v1/projects/{projectsId}/locations/{locationsId}/servers/{serversId}/users"
tags: ["projects"]
---

# GET /v1/projects/{projectsId}/locations/{locationsId}/servers/{serversId}/users

`GET /v1/projects/{projectsId}/locations/{locationsId}/servers/{serversId}/users`

## Request

- Base URL: `https://ftp.googleapis.com`
- URL: `https://ftp.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/servers/{serversId}/users`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/cloud-platform`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`

Lists Users in a given project and location.

## Path parameters

- `projectsId` string, required
- `locationsId` string, required
- `serversId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string
- `filter` string
- `orderBy` string
- `pageSize` integer
- `pageToken` string
- `view` 'USER_VIEW_UNSPECIFIED' | 'USER_VIEW_BASIC' | 'USER_VIEW_FULL'

## Response `200`

Successful response

- ListUsersResponse: Message for response to listing Users
  - `nextPageToken` string: A token identifying a page of results the user should return.
  - `unreachable` string[]: Unordered list. Locations that could not be reached.
  - `users` User[]: The list of User
    - `createTime` string, google-datetime: Output only. [Output only] Create time stamp
    - `customerServiceAccount` string: Required. Service account in customer project attached to this SFTP User.
    - `labels` object: Optional. Labels as key value pairs
    - `name` string: Identifier. User-friendly name via which User will be identified. projects/{project}/locations/{location}/servers/{server}/users/{user}
    - `state` 'STATE_UNSPECIFIED' | 'CREATING' | 'ACTIVE' | 'ERROR' | 'UPDATING' | 'DELETING': Output only. Tracks user creation.
    - `storageDirectoryMappings` StorageDirectoryMapping[]: Required. Mapping of Cloud Storage buckets to directories where the user will land in the SFTP server.
      - `bucket` string: Required. Name of the bucket.
      - `bucketPrefix` string: Optional. Prefix inside the bucket.
      - `directory` string: Required. Directory where the user lands in the SFTP server.
      - `permission` 'PERMISSION_UNSPECIFIED' | 'READ_ONLY' | 'READ_WRITE': Required. Permission to the bucket.
    - `updateTime` string, google-datetime: Output only. [Output only] Update time stamp
    - `userCredentials` UserCredential[]: Required. User credential for the user. The maximum number of user credentials is 10.
      - `credentialName` string: Required. Name of the user credential.
      - `credentialType` 'TYPE_UNSPECIFIED' | 'PUBLIC_KEY': Required. Type of credential.
      - `sshPublicKeyBody` string: Optional. SSH public key body in OpenSSH format. Example: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQ..."
    - `username` string: Output only. [Output only] The username of the user.

---

[API](https://skmtc.dev/google/apis/ftp.md) - [All operations](https://skmtc.dev/google/apis/ftp/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/ftp/revisions/3528a90801ed?raw)
