---
title: "Users client"
slug: "users-client"
abstract: "Use the Users client to fetch user or group entities by name and manage users in scripts or automation tasks."
---
# Users client

The Users client can be used to fetch users and user groups by name, and also features some password management operations.

Users and user groups are entities that can be used with the Querying client and the Entities client.

## Get users { .notintoc }

The `GetUserAsync` method gets a user by username.

The following example fetches the user entity named *superuser*:

```csharp
IEntity superuser = await MClient.Users.GetUserAsync("superuser");

```

## Get user groups { .notintoc }

The `GetUserGroupAsync` method gets a user group by name.

The following example fetches the user group entity named *superusers*.

```csharp
IEntity superusersGroup = await MClient.Users.GetUserGroupAsync("superusers");

```