> For the complete documentation index, see [llms.txt](https://docs.tnid.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tnid.com/api-reference/002_company/010_users_and_search/002__get_user_by_username_as_company.md).

# Get User By Username (Company)

GraphQL endpoint: `/company`

Gets a user by username. Each profile field is returned only if the user's visibility settings allow the caller to see it; hidden fields come back null (or empty for lists).

## Query

```graphql
query ($username: String!) {
  userByUsername(username: $username) {
    id
    username
    firstName
    emails {
      email
      visibility
    }
    telephoneNumbers {
      number
      visibility
    }
    nameVisibility
    aboutMeVisibility
  }
}

```

## Variables

```json
{
  "username": "username3"
}
```

## Response

```json
{
  "data": {
    "userByUsername": {
      "aboutMeVisibility": null,
      "emails": [
        {
          "email": "test1@email.com",
          "visibility": null
        }
      ],
      "firstName": "1john",
      "id": "00000000-0000-4000-8000-000000000001",
      "nameVisibility": null,
      "telephoneNumbers": [
        {
          "number": "2",
          "visibility": null
        }
      ],
      "username": "username3"
    }
  }
}
```
