-
-
Save RyanABailey/86193312fc4387943092 to your computer and use it in GitHub Desktop.
Sitecore assigning custom profile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Sitecore.Security.Accounts.User user = Sitecore.Security.Accounts.User.FromName("extranet\Ryan", true); | |
| Sitecore.Security.UserProfile userProfile = user.Profile; | |
| userProfile.SetPropertyValue("ProfileItemId", "{53DAD220-96B3-424C-9ABA-1D14740D7EF6}"); | |
| userProfile.Save(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment