Tip: Getting the normal domain username from the claims username in SharePoint 2013

Introduction to the problem It’s not uncommon when upgrading to SharePoint 2013 from a previous version of SharePoint that you’ll get encoded claims usernames in the places you may have seen normal usernames (DOMAIN) syntaxes before. In my case it was a matter of finding a ton of custom code and have it check whether the username was a claims encoded username or not. This is what we saw: POINTBIRD\tobiaszimmergren There’s a good reason for why the username that is claims encoded look the way it does. The format tells us what type of claim it…

Read More

SP 2010: Developing for performance Part 5 - Disposal patterns and tools

Author: Tobias Zimmergren http://www.zimmergren.net | http://www.tozit.com | [@zimmergren](http://www.twitter.com/zimmergren) Introduction SharePoint 2010 developing for performance article series: In this series of articles I will briefly introduce you to some key concepts when it comes to developing for performance in our SharePoint 2010 applications. Related articles in this article series Part 1 – SP 2010: Developing for performance Part 1 – Developer Dashboard Part 2 – SP 2010: Developing for performance Part 2 – SPMonitoredScope Part 3 – SP 2010: Developing for performance Part 3 – Caching in SharePoint 2010 Part 4 – SP 2010: Developing for performance Part 4…

Read More

SP 2010: Developing for performance Part 1 - Developer Dashboard

SP 2010: Developing for performance Part 1 - Developer Dashboard

Author: Tobias Zimmergren http://www.zimmergren.net | http://www. tozit.com | [@zimmergren](http://www.twitter.com/zimmergren) Introduction SharePoint 2010 developing for performance article series: In this series of articles I will briefly introduce you to some key concepts when it comes to developing for performance in our SharePoint 2010 applications. Related articles in this article series Part 1 – SP 2010: Developing for performance Part 1 – Developer Dashboard Part 2 – SP 2010: Developing for performance Part 2 – SPMonitoredScope Part 3 – SP 2010: Developing for performance Part 3 – Caching in SharePoint 2010 Part 4 – SP 2010: Developing for performance Part 4…

Read More

SP 2010: Introduction to programmatically working with Taxonomies in SharePoint Server 2010

Author: Tobias Zimmergren http://www.zimmergren.net | http://www. tozit.com | [@zimmergren](http://twitter.com/zimmergren) Introduction One of the coolest new set of functionality for SharePoint 2010 is the Taxonomies (Term Store, Term Sets, Terms) that you can easily create using the amazing Managed Metadata Manager service application. In this article I’ll talk briefly about how you can utilize the SharePoint API to programmatically work with Taxonomies and create terms and fetch the terms in your term store. This should give you some nice ideas on how to get going! A simple example of a taxonomy Let’s…

Read More

SP 2010: How to create a PowerShell Snapin Cmdlet - Part 2

Author: Tobias Zimmergren http://www.zimmergren.net | http://www.tozit.com | [@zimmergren](http://www.twitter.com/zimmergren) Introduction In my previous article (How to create a PowerShell Snapin – Part 1) I talked about the general approach to create a custom PowerShell Cmdlet. However, in Part 1 I did not talk about how you create SharePoint 2010 specific Cmdlets. That’s what this article is all about. So without further ado, I will quickly brief you on how you can create a custom PowerShell Cmdlet for SharePoint 2010 using the SPCmdlet base class. In my example I will create a very…

Read More

SP 2010: How to create a PowerShell Snapin - Part 1

Author: Tobias Zimmergren http://www.zimmergren.net | http://www.tozit.com | [@zimmergren](http://www.twitter.com/zimmergren) Introduction In this article I will talk about how you can get started with creating custom PowerShell commands for SharePoint 2010 that you can use. You will see how easy it actually is to build a custom class library that in turn is an extension to the PowerShell console and will add a couple of extra commands according to your preference. The reasons for wanting to do this is an endless list, but as an example if you’ve got repeated tasks you’…

Read More

SP 2010: SharePoint Server 2010 - Creating a custom Document ID provider

Author: Tobias Zimmergren http://www.zimmergren.net | http://www.tozit.com | [@zimmergren](http://www.twitter.com/zimmergren) Introduction In this article I will talk about how you can create your custom Document ID provider for your SharePoint Server 2010 installation. Sometimes I’ve been getting the question weather or not it’s possible to change the behavior or change the way the Document ID’s are generated, and some people have a tendency to say no to that question, just because there’s no interface or out of the box functionality to do so. I’ll give you a quick…

Read More

SP 2010: Getting started with LINQ to SharePoint in SharePoint 2010

Author: Tobias Zimmergren http://www.zimmergren.net | http://www.tozit.com | [@zimmergren](http://www.twitter.com/zimmergren) Introduction In SharePoint 2010 you now have the ability to use LINQ syntax to fetch items from your lists instead of using the "traditional" approach of CAML queries. (Including SPSiteDataQuery and SPQuery objects) In this article I will give you a brief introduction to how you can get started using LINQ queries in SharePoint, also known as LINQ to SharePoint. Basics of LINQ? As a prerequisite to this article, I’m going to imply that you know what LINQ is and…

Read More