---
title: "getUser"
canonical: "https://support.appfire.com/space/SCLI/73371489/getUser"
format: markdown
---
See also: [Actions](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73368507)

> Macro (details)
> 
> | **Description** | Get user information for the current user or the user identified by the userId parameter if provided. |
> | --- | --- |
> | **Required Parameters** |  |
> | **Optional Parameters** | [userId](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73368641), [outputType](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73368777), [file](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73370741), [append](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73370891), [reference](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73371445), [encoding](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73368755) |
> | **Type** | [Get](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73370540/Action+Types#ActionTypes-Get) |
> | **Category** | [Users](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73371318/Action+Categories#ActionCategories-Users) |
> | **Output Formats** |  |
> | **Replacement Variables** | userKey, userId, userDisplayName |
> | **Hosting** | server,datacenter |
> | **Since Version** |  |
> | **Examples** | [getUser](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73371753/Examples#Examples-getUser) |

## Related How To's

> Macro (cql-query)