Interface IUserImpersonation
Create a principal based on a user name and add roles from the current Security
Namespace: EPiServer.Security
Assembly: EPiServer.dll
Version: 11.20.7Syntax
public interface IUserImpersonation
Methods
CreatePrincipal(String)
Create a principal based on a user name and add roles from the current Security
Declaration
IPrincipal CreatePrincipal(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