Interface IUserImpersonation
Create a principal based on a user name and add roles from the current Security
Namespace: EPiServer.Security
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public interface IUserImpersonation
Methods
CreatePrincipalAsync(String)
Create a principal based on a user name and add roles from the current Security
Declaration
Task<IPrincipal> CreatePrincipalAsync(string userName)
Parameters
Type | Name | Description |
---|---|---|
System. |
userName |
Returns
Type | Description |
---|---|
System. |
Remarks
This is no validation done, if the user does not exist it will be created without roles