---
title: "Fetch SSH keys for a user"
method: GET
path: "/api/pki/restapi/getSSHkeysforuser"
tags: ["SSH Keys"]
---

# Fetch SSH keys for a user

`GET /api/pki/restapi/getSSHkeysforuser`

## Request

- Base URL: `https://Hostname:Port`
- URL: `https://Hostname:Port/api/pki/restapi/getSSHkeysforuser`
- Auth: API key in header `AUTHTOKEN`
- TypeScript: <https://skmtc.dev/manageengine/apis/pam360-rest-api/docs/api/pki/restapi/getSSHkeysforuser/get.ts> (a function with typed inputs; its response is checked against the schema)

## Query parameters

- `userName` string, required
- `resourceName` string

## Headers

- `orgName` string

## Response `200`

SSH keys for user

- PkiResponse: Response from PKI module endpoints (SSH/SSL)
  - `result` object
    - `status` string
    - `message` string
  - `details` object: Response payload (varies by endpoint)

---

[API](https://skmtc.dev/manageengine/apis/pam360-rest-api.md) - [All operations](https://skmtc.dev/manageengine/apis/pam360-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/manageengine/apis/pam360-rest-api/revisions/44a47abb4bdb?raw)
