Working with User in Sitecore
Thu, 09/17/2009 - 12:56 — larssg
Today is the second time I’ve been looking for the User template because I needed to add a field. This will probably happen again, but next time I have this blog post (HA!):
The User template is located in the Core database at /sitecore/templates/System/Security/User.
If you then need to get a list of all users in the database, run
var userProvider = new UserProvider();
foreach (User user in userProvider.GetUsers())
{
// Do something with user…
}
foreach (User user in userProvider.GetUsers())
{
// Do something with user…
}
NB: This is based on Sitecore 6.
Recent blog posts
- Clean sheets and locked games
- New Drupal module released: Blogtoppen
- Working with User in Sitecore
- Performance improvements
- "Killed" when running gem install or gem update
- Score Keeper is moving
- Support for multiple games per account
- New features in Score Keeper
- Score Keeper
- Migrating (back) to Drupal
Drupal Sites
1 week 4 days ago
5 weeks 4 days ago
8 weeks 3 days ago
