Class UserTableauCloudSiteRoleTransformer
Transformer that changes the SiteRole of the user. ServerAdministrator on Server changes to SiteAdministratorCreator on the cloud. See Tableau API Reference for details.
Inherited Members
Namespace: Tableau.Migration.Engine.Hooks.Transformers.Default
Assembly: Tableau.Migration.dll
Syntax
public class UserTableauCloudSiteRoleTransformer : ContentTransformerBase<IUser>, IContentTransformer<IUser>, IMigrationHook<IUser>
Constructors
UserTableauCloudSiteRoleTransformer(ISharedResourcesLocalizer, ILogger<UserTableauCloudSiteRoleTransformer>)
Creates a new UserTableauCloudSiteRoleTransformer object.
Declaration
public UserTableauCloudSiteRoleTransformer(ISharedResourcesLocalizer localizer, ILogger<UserTableauCloudSiteRoleTransformer> logger)
Parameters
Type | Name | Description |
---|---|---|
ISharedResourcesLocalizer | localizer | |
ILogger<UserTableauCloudSiteRoleTransformer> | logger |
Methods
TransformAsync(IUser, CancellationToken)
Executes the transformation.
Declaration
public override Task<IUser?> TransformAsync(IUser itemToTransform, CancellationToken cancel)
Parameters
Type | Name | Description |
---|---|---|
IUser | itemToTransform | The input context from the migration engine or previous hook. |
CancellationToken | cancel | The cancellation token to obey. |
Returns
Type | Description |
---|---|
Task<IUser> | A task to await containing the context,
potentially modified to pass on to the next hook or migration engine,
or null to continue passing the same context as |