Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Check by whether a user exists.

Description

The Exists() method is used to check for the existence of a user.

Package Details

Interface

IUserManager

Syntax

await _userManager.Exists(int userId)

Returns

Task<bool>

API

HEAD
/api/v1/users/{id}

Parameters

Parameter

Description

Parameter Type

id

The user Id to search for

Path

Returns

On success, 200 Ok

On error, 400 Bad Request

On not found, 404 Not Found

On authorization error, 403 Forbidden

Example

int userId = 1;
await _userManager.Exists(userId);

  • No labels