Tip: Getting the normal domain username from the claims username in SharePoint 2013
Read OriginalThis article addresses the common issue in SharePoint 2013 where usernames appear as claims-encoded strings (e.g., POINTBIRD\tobiaszimmergren) instead of the traditional DOMAIN\username format. It explains why claims encoding is used and provides a code snippet using the SPClaimProviderManager class's built-in methods (IsEncodedClaim and ConvertClaimToIdentifier) to safely convert claims usernames back to normal domain usernames. The author warns against manual string parsing and recommends using the API for reliability. The article is a technical tip for developers working with SharePoint 2013 upgrades or custom code.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser
Top of the Week
No top articles yet