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 »

Get a user by PKI

Description

TheĀ GetByService() method is used to get a user by PKI.

Package Details

Interface

IUserManager

Syntax

await _userManager.GetByService(int serviceId, UserType userType = UserType.All)

Returns

Task<ICollection<User>>

API

GET
/api/v1/services/{serviceId}/users?userType={userType}

Parameters

Parameter

Description

Parameter Type

serviceId

The service Id to search for

Path

userType [UserType]

The user type

Query string

Returns

On success, 200 Ok

On error, 400 Bad Request

On authorization error, 403 Forbidden

Example

Get all users by PKI

int serviceId = 1;
await _userManager.GetByPki(serviceId);

Get all internal users by PKI

int serviceId = 1;
await _userManager.GetByPki(serviceId, UserType.Internal);

Get all external users by PKI

int serviceId = 1;
await _userManager.GetByPki(serviceId, UserType.External);

  • No labels