Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

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.4
Syntax
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

Extension Methods