Class UserTransformator
Class that handles the transformation of users
Inherited Members
Namespace: PnP.Framework.Modernization.Transform
Assembly: PnP.Framework.dll
Syntax
public class UserTransformator : BaseTransform
Constructors
UserTransformator(BaseTransformationInformation, ClientContext, ClientContext, IList<ILogObserver>)
User Transformator constructor
Declaration
public UserTransformator(BaseTransformationInformation baseTransformationInformation, ClientContext sourceContext, ClientContext targetContext, IList<ILogObserver> logObservers = null)
Parameters
BaseTransformationInformation
baseTransformationInformation
Transformation configuration settings |
ClientContext
sourceContext
Source Context |
ClientContext
targetContext
Target Context |
IList<ILogObserver>
logObservers
Connected loggers |
Properties
IsUserMappingSpecified
Determine if the user transforming according to mapped file
Declaration
public bool IsUserMappingSpecified { get; }
Property Value
System.Boolean
|
ShouldMapUsers
Determines if we should attempt to map users
Declaration
public bool ShouldMapUsers { get; }
Property Value
System.Boolean
|
Methods
RemapPrincipal(ClientContext, FieldUserValue)
Remap principal to target principal
Declaration
public string RemapPrincipal(ClientContext context, FieldUserValue userField)
Parameters
ClientContext
context
ClientContext of the source web |
FieldUserValue
userField
User field value object |
Returns
System.String
Mapped principal that works on the target site |
RemapPrincipal(String)
Remap principal to target principal
Declaration
public string RemapPrincipal(string principalInput)
Parameters
System.String
principalInput
|
Returns
System.String
Principal for the target site |
StripUserPrefixTokenAndDomain(String)
Strip User Prefix Token And Domain
Declaration
public string StripUserPrefixTokenAndDomain(string principal)
Parameters
System.String
principal
|
Returns
System.String
|