GetByPki() [UserManager]
Get a user by PKI
Description
The GetByPki() method is used to get a user by PKI.
Package Details
Interface
IUserManager
Syntax
await _userManager.GetByPki(string pki)
Returns
Task<User>
API
GET
/api/v1/users/{pki}
Parameters
Parameter | Description | Parameter Type |
---|---|---|
pki | The PKI to search for | Path |
Returns
On success, 200 Ok
When the PKI is not found, 404 Not Found
On error, 400 Bad Request
On authorization error, 403 Forbidden
Example
string pki = "MIIGhAIBAzCCBkoGCSqGSIb3DQEHAaCCBjsEggY3MI.";
await _userManager.GetByPki(pki);