ConfidentialLedgerClient.CreateOrUpdateUser(String, RequestContent, CancellationToken) Method

Definition

A JSON merge patch is applied for existing users.

public virtual Azure.Response CreateOrUpdateUser (string userId, Azure.Core.RequestContent requestBody, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateUser : string * Azure.Core.RequestContent * System.Threading.CancellationToken -> Azure.Response
override this.CreateOrUpdateUser : string * Azure.Core.RequestContent * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function CreateOrUpdateUser (userId As String, requestBody As RequestContent, Optional cancellationToken As CancellationToken = Nothing) As Response

Parameters

userId
System.String

The user id, either an AAD object ID or certificate fingerprint.

requestBody
RequestContent

The request body.

cancellationToken
System.Threading.CancellationToken

The cancellation token to use.

Returns

Response

Remarks

Schema for Request Body:

assignedRole"Administrator" | "Contributor" | "Reader"Yes Represents an assignable role.
userIdstring Identifier for the user. This must either be an AAD object id or a certificate fingerprint.

Applies to