Class DomainLocalUsersClient
public class DomainLocalUsersClient
- Inheritance
-
DomainLocalUsersClient
- Inherited Members
Constructors
DomainLocalUsersClient(string, HttpClient)
public DomainLocalUsersClient(string baseUrl, HttpClient httpClient)
Parameters
baseUrlstringhttpClientHttpClient
Properties
BaseUrl
public string BaseUrl { get; set; }
Property Value
JsonSerializerSettings
protected JsonSerializerSettings JsonSerializerSettings { get; }
Property Value
- JsonSerializerSettings
ReadResponseAsString
public bool ReadResponseAsString { get; set; }
Property Value
Methods
ChangePasswordV2Async(string, ChangePasswordLocalUserRequestModel, CancellationToken)
Edits local user password.
public virtual Task<ChangePasswordLocalUserResponseModel> ChangePasswordV2Async(string identityId, ChangePasswordLocalUserRequestModel model, CancellationToken cancellationToken = default)
Parameters
identityIdstringmodelChangePasswordLocalUserRequestModelcancellationTokenCancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Returns
- Task<ChangePasswordLocalUserResponseModel>
Success
Exceptions
- NfieldSdkException
A server side error occurred.
DeleteAsync(string, CancellationToken)
Deletes a user
public virtual Task DeleteAsync(string identityId, CancellationToken cancellationToken = default)
Parameters
identityIdstringcancellationTokenCancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Returns
- Task
Success
Exceptions
- NfieldSdkException
A server side error occurred.
GetAllAsync(CancellationToken)
Returns a list of all local users.
public virtual Task<ICollection<LocalUserResponseModel>> GetAllAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Returns
- Task<ICollection<LocalUserResponseModel>>
Success
Exceptions
- NfieldSdkException
A server side error occurred.
GetAsync(string, CancellationToken)
Returns details for a local user.
public virtual Task<LocalUserResponseModel> GetAsync(string identityId, CancellationToken cancellationToken = default)
Parameters
identityIdstringcancellationTokenCancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Returns
- Task<LocalUserResponseModel>
Success
Exceptions
- NfieldSdkException
A server side error occurred.
PatchAsync(string, EditLocalUserRequestModel, CancellationToken)
Edits properties of a local user.
public virtual Task<LocalUserResponseModel> PatchAsync(string identityId, EditLocalUserRequestModel model, CancellationToken cancellationToken = default)
Parameters
identityIdstringmodelEditLocalUserRequestModelcancellationTokenCancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Returns
- Task<LocalUserResponseModel>
Success
Exceptions
- NfieldSdkException
A server side error occurred.
PostAsync(LocalUserRequestModel, CancellationToken)
Creates a new user.
public virtual Task<LocalUserResponseModel> PostAsync(LocalUserRequestModel model, CancellationToken cancellationToken = default)
Parameters
modelLocalUserRequestModelcancellationTokenCancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Returns
- Task<LocalUserResponseModel>
Success
Exceptions
- NfieldSdkException
A server side error occurred.
ReadObjectResponseAsync<T>(HttpResponseMessage, IReadOnlyDictionary<string, IEnumerable<string>>, CancellationToken)
protected virtual Task<DomainLocalUsersClient.ObjectResponseResult<T>> ReadObjectResponseAsync<T>(HttpResponseMessage response, IReadOnlyDictionary<string, IEnumerable<string>> headers, CancellationToken cancellationToken)
Parameters
responseHttpResponseMessageheadersIReadOnlyDictionary<string, IEnumerable<string>>cancellationTokenCancellationToken
Returns
Type Parameters
T