none
What does the string "i:0#.w" mean in front of user names?

    Question

  • I was trying to add a SQLMembershipProvider to my SharePoint site so I could give users in an existing ASP.Net application permission to use the Search Query Service.  After adding the membership and role providers to the Central Administration's web.config, the Security Token Service Application's web.config and the web.config for the SharePoint application I created, I can now add users from the database to my sharepoint web application's "User Policy".  What's wierd is new users from the domain show up as i:0#.w\domainname\username in the User Name field on the user policy modal.  What does the string "i:0#.w" mean in front of the user names?


    Mike
    Thursday, June 10, 2010 6:40 PM

Answers

  • It is just a code that SharePoint uses to identify the type of authentication.   I think in video 1 or 3 on this page talks about that code.

    I believe it has to do with the way SharePoint uses claims based authenticaiton internally.


    If you get your question answered, please come back and mark the reply as an answer.  
    If you are helped by an answer to someone else's question, please mark it as helpful.
    Mike Hacker | Blog: http://mphacker.spaces.live.com 

    • Proposed as answer by Mike Hacker Sunday, June 13, 2010 12:04 AM
    • Marked as answer by Aaron Han - MSFT Wednesday, June 30, 2010 8:42 AM
    Friday, June 11, 2010 12:01 AM

All replies

  • It is just a code that SharePoint uses to identify the type of authentication.   I think in video 1 or 3 on this page talks about that code.

    I believe it has to do with the way SharePoint uses claims based authenticaiton internally.


    If you get your question answered, please come back and mark the reply as an answer.  
    If you are helped by an answer to someone else's question, please mark it as helpful.
    Mike Hacker | Blog: http://mphacker.spaces.live.com 

    • Proposed as answer by Mike Hacker Sunday, June 13, 2010 12:04 AM
    • Marked as answer by Aaron Han - MSFT Wednesday, June 30, 2010 8:42 AM
    Friday, June 11, 2010 12:01 AM
  • Thanks!  It was in video 3.  http://microsoftpdc.com/Sessions/PR11
    Mike
    Friday, June 11, 2010 5:56 PM
  • Is the "i:0#.w|" always going to be static?

    I have a few SPD workflows that trim the [Created by] string, which is then added to a URL to set a path for photos. Or will this be changing and I'll need to find another way to dynamically create my URL?


    Stunpals - Disclaimer: This posting is provided "AS IS" with no warranties.

    Monday, January 16, 2017 11:47 PM
  • if I set a form default username in InfoPath and it give the user i:03w|domain/username....they will not like that.

    you would think Microsoft would have a more friendly way to display this.   stupid.


    ~george

    Tuesday, April 25, 2017 6:11 PM
  • GeOrg3, perhaps there is a way in InfoPath to trim that raw data down to the actual username for display?

    An extra step but it may look better, not sure if that helps or not in your situation.


    Stunpals - Disclaimer: This posting is provided "AS IS" with no warranties.

    Tuesday, April 25, 2017 6:15 PM
  • In InfoPath, change the default value for the field (Under properties) to the following: 

    substring-after(userName(), "i:0#.w|") 

    i:0#.w| is the way SharePoint recognizes the claim type being used.

    "i:0#.w|" tells SharePoint its a Windows User, other examples include: i:0#.f| which is Forms Based.

    More details here: https://social.technet.microsoft.com/wiki/contents/articles/13921.sharepoint-20102013-claims-encoding.aspx

    Aj...

    Monday, December 4, 2017 6:54 AM