/
Exists() [UserManager]
Exists() [UserManager]
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
If the user is found, 200 Ok
If the user does not exist, 404 Not Found
On error, 400 Bad Request
On authorization error, 403 Forbidden
Example
int userId = 1;
await _userManager.Exists(userId);
, multiple selections available,
Related content
GetById() [UserManager]
GetById() [UserManager]
More like this
GetByEmail() [UserManager]
GetByEmail() [UserManager]
More like this
GetPermissions() [UserManager]
GetPermissions() [UserManager]
More like this
EnrollUser()
EnrollUser()
More like this
Register()
Register()
More like this
GetApplicationByUserId [UserManager]
GetApplicationByUserId [UserManager]
More like this