> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# Get Current User

- Component: `appmixer.superoffice.core.GetCurrentUser`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.superoffice 1.2.0](https://connectors.appmixer.com/connector/appmixer.superoffice/1.2.0.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.superoffice/1.2.0/component/appmixer.superoffice.core.GetCurrentUser>

Get the SuperOffice user the account is connected as, and the tenant.

## Input ports

### Port `in`

_No fields defined for this port._

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Associate ID (`associateId`) | integer | - |
| Person ID (`personId`) | integer | - |
| Company ID (`contactId`) | integer | - |
| Full Name (`fullName`) | string | - |
| Email (`email`) | string | - |
| User Name (`userName`) | string | - |
| Role Name (`roleName`) | string | - |
| Tenant ID (`tenantId`) | string | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.superoffice.core.GetCurrentUser",
  "label": "Get Current User",
  "description": "Get the SuperOffice user the account is connected as, and the tenant.",
  "author": "Appmixer <info@appmixer.com>",
  "version": "1.0.0",
  "auth": {
    "service": "appmixer:superoffice"
  },
  "quota": {
    "manager": "appmixer:superoffice",
    "resources": "requests",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {}
      },
      "inspector": {
        "inputs": {}
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "schema": {
        "type": "object",
        "required": [
          "associateId",
          "tenantId"
        ],
        "properties": {
          "associateId": {
            "type": "integer",
            "title": "Associate ID",
            "example": 5
          },
          "personId": {
            "type": "integer",
            "title": "Person ID",
            "example": 5
          },
          "contactId": {
            "type": "integer",
            "title": "Company ID",
            "example": 2
          },
          "fullName": {
            "type": "string",
            "title": "Full Name",
            "example": "Jane Doe"
          },
          "email": {
            "type": "string",
            "title": "Email",
            "example": "jane.doe@acme.example"
          },
          "userName": {
            "type": "string",
            "title": "User Name",
            "example": "jane.doe@acme.example"
          },
          "roleName": {
            "type": "string",
            "title": "Role Name",
            "example": "Administrator"
          },
          "tenantId": {
            "type": "string",
            "title": "Tenant ID",
            "example": "Cust12345"
          }
        }
      }
    }
  ],
  "icon": "(data URI omitted)"
}
```
