GET SSH Users ID

The GET /SSHClosed The SSH (secure shell) protocol provides for secure connections between computers. It provides several options for authentication, including public key, and protects the communications with strong encryption./Users/{id} operation retrieves an SSH user defined in Keyfactor Command.The operation can return either a user or a service account. See SSH for more information on the difference between users and service accounts. On success, the operation returns HTTP 200 OK with  details for the requested SSH user and its public keyClosed In asymmetric cryptography, public keys are used together in a key pair with a private key. The private key is retained by the key's creator while the public key is widely distributed to any user or target needing to interact with the holder of the private key.. To return an SSH private keyClosed Private keys are used in cryptography (symmetric and asymmetric) to encrypt or sign content. In asymmetric cryptography, they are used together in a key pair with a public key. The private or secret key is retained by the key's creator, making it highly secure., use the GET SSH Keys My Key operation for a user account or the GET SSH Service Accounts Key ID operation for a service account.

Tip:  The following permissions (see Security Roles and Claims) are required to use this feature:
/ssh/server_admin/
OR
/ssh/enterprise_admin/

SSH actions are affected by ownership on the server group with which user to logon mappings are associated and limited for users with only the Server Admin (/ssh/server_admin/) role. For more information, see SSH Permissions.

This operation has two available versions. Keyfactor recommends using the newer operation when possible. For more information, see Endpoint Definition Versioning.

Version 2 of GET /SSH/Users/{id} redesigns how logon information for the user is returned, providing a greater level of detail in the returned data.

Table 927: GET SSH Users {id} v2 Input Parameters

Name In Description
id Path Required. An integer indicating the Keyfactor Command reference ID for the SSH user (user or service account) to be retrieved.

Use the GET SSH Users operation to retrieve a list of all the SSH users to determine the user's ID.

Table 928: GET SSH Users {id} v2 Response Data

Name

Description

Id

An integer indicating the Keyfactor Command reference ID of the SSH user.

Key

An object containing information about the key for the user. ClosedShow key details.

Username A string indicating the full username of the user or service account. For a user account, the username appears in DOMAIN\\username format (for example, KEYEXAMPLE\\jsmith). For a service account, the username is made up of the user name and ClientHostname entered when the service account is created (for example, myapp@appsrvr75).
Access

An object containing information about the Linux logons mapped to the user. ClosedShow Linux logon mapping details.

IsGroup A Boolean indicating whether the user is an Active Directory group (True or False).

Version 1 of GET /SSH/Users/{id} includes the same capabilities as version 2, but offers more limited information on returned logons for the user.

Table 929: GET SSH Users {id} v1 Input Parameters

Name In Description
id Path Required. An integer indicating the Keyfactor Command reference ID for the SSH user (user or service account) to be retrieved.

Use the GET SSH Users operation to retrieve a list of all the SSH users to determine the user's ID.

Table 930: GET SSH Users {id} v1 Response Data

Name

Description

Id

An integer indicating the Keyfactor Command reference ID of the SSH user.

Key

An object containing information about the key for the user. ClosedShow key details.

Username A string indicating the full username of the user or service account. For a user account, the username appears in DOMAIN\\username format (for example, KEYEXAMPLE\\jsmith). For a service account, the username is made up of the user name and ClientHostname entered when the service account is created (for example, myapp@appsrvr75).
LogonIds

An array of integers indicating the Keyfactor Command reference IDs for the Linux logons mapped to the user to cause the user's SSH public key to be published out to the Linux servers on which those logons reside.