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