PrincipalInfo.CreatePrincipal is Obsolete

Vote:
 

PrincipalInfo.CreatePrincipal has been made Obsolete and the description say to use IUserImpersonation. But i can not find any information on IUserImpersonation. Can anyone help me?

#178627
May 16, 2017 9:11
Vote:
 
var userImpersonation =  ServiceLocator.Current.GetInstance<IUserImpersonation>();
userImpersonation.CreatePrincipal("someUserName");
#178630
May 16, 2017 10:23
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.