Users client

The SDK provides a Users client 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

The GetUserAsync method gets a user by username. The following example fetches the user entity of the superuser:

RequestResponse

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

Get user groups

The GetUserGroupAsync method gets a user group by name. The following example fetches the user group entity for the superusers group.

RequestResponse

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

Do you have some feedback for us?

If you have suggestions for improving this article,