tomtom-webfleetconnect

A .NET Standard wrapper for TomTom WebFleet connect API

View the Project on GitHub scottyearsley/tomtom-webfleetconnect

User Management

Show Users

Returns all users for an account without any filtering.

Syntax

List<User> ShowUsers(UserFilter = null)
{
}

Parameters

userFilter

Type: UserFilter
User filter configuration

Examples

var client = ... // initialize WebFleetConnectClient instance.

// List users with no filtering
List<User> users = client.Users.ShowUsers();

// List users for a specific company
List<User> companyUsers = client.UserManagement.ShowUsers(
    new UserFilter
    {
        Company = "[Company]"
    }
);

Show Users (asynchronous)

Returns all users for an account without any filtering.

Syntax

Task<List<User>> ShowUsersAsync(UserFilter = null)
{
}

Parameters

userFilter

Type: UserFilter
User filter configuration

Examples

var client = ... // initialize WebFleetConnectClient instance.

// List users with no filtering
Task<List<User>> users = await client.UserManagement.ShowUsersAsync();

// List users for a specific company
Task<List<User>> users = await client.UserManagement.ShowUsersAsync(
    new UserFilter
    {
        Company = "[Company]"
    }
);

Change Password

Used to change the password of the current user account.

Syntax

void ChangePassword(string oldPassword, string newPassword)
{
}

Parameters

oldPassword

Type: string
The current password of the user account.

newPassword

Type: string
The new password.

Example

var client = ... // initialize WebFleetConnectClient instance.

client.UserManagement.ChangePassword("[oldPassword]", "[newPassword]");

Change Password (asynchronous)

Used to change the password of the current user account.

Syntax

Task ChangePassword(string oldPassword, string newPassword)
{
}

Parameters

oldPassword

Type: string
The current password of the user account.

newPassword

Type: string
The new password.

Example

var client = ... // initialize WebFleetConnectClient instance.

await client.UserManagement.ChangePasswordAsync("[oldPassword]", "[newPassword]");