Open this page in the API Guide

IAccountService.WriteUserDataValues Method (Guid, IDictionary<String, String>)

Updates tenant-agnostic user data values for the specified account.

Namespace:  Dundas.BI.AccountServices
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (25.1.0.1000)
Syntax
void WriteUserDataValues(
	Guid accountId,
	IDictionary<string, string?> userData
)

Parameters

accountId
Type: System.Guid
The ID of the account.
userData
Type: System.Collections.Generic.IDictionary<String, String>
The user data values to add/update. Items with a value of null will be removed from saved user data.
Exceptions
ExceptionCondition
ArgumentException

accountId is Empty.

-or-

One of the keys in the dictionary is Empty, or contains only whitespace.

ArgumentNullExceptionuserData is null.
NotFoundExceptionAn account with the specified ID was not found.
InvalidOperationException The account corresponding to the specified ID is an External or Windows Group account.
NoPrivilegeException

accountId does not correspond to the account associated with the caller's session.

-or-

The caller does not have system administration privileges.

-or-

The account is associated with a tenant, and the caller does not have administration privileges for that tenant.

InvalidSessionExceptionThe caller context is not associated with a valid session.
See Also