<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Voyage</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/voyage/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/voyage/feed.xml</link>
    <description />
    <lastBuildDate>Thu, 03 Aug 2017 20:18:37 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Create SharePoint Service accounts through PowerShell script.</title>
      <link>https://docs.microsoft.com/archive/blogs/voyage/create-sharepoint-service-accounts-through-powershell-script</link>
      <pubDate>Thu, 03 Aug 2017 20:12:13 GMT</pubDate>
      <dc:creator><![CDATA[Deepa Lakhani]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/voyage/?p=246</guid>
      <description><![CDATA[You need to domain admin or have permissions to create user in Active Directory.  Need to log in in...]]></description>
      <content:encoded><![CDATA[You need to domain admin or have permissions to create user in Active Directory.  Need to log in in the domain controller and run this script to create all the service accounts

It creates following service accounts
<table width="100%">
<tbody>
<tr style="padding: 5px">
<td width="20%" style="border-width: 1px;border-style: solid;padding: 2px">Account</td>
<td width="45%" style="border-width: 1px;border-style: solid;padding: 2px">Description</td>
<td width="35%" style="border-width: 1px;border-style: solid;padding: 2px">Domain rights</td>
</tr>
<tr style="padding: 5px">
<td width="20%" style="border-width: 1px;border-style: solid;padding: 2px">SP_Farm</td>
<td width="45%" style="border-width: 1px;border-style: solid;padding: 2px">Farm account - Configure and manage the server farm.</td>
<td width="35%" style="border-width: 1px;border-style: solid;padding: 2px">SecurityAdmin and DB_Creator rights on the SQL Instance</td>
</tr>
<tr style="padding: 5px">
<td width="20%" style="border-width: 1px;border-style: solid;padding: 2px">SP_admin</td>
<td width="45%" style="border-width: 1px;border-style: solid;padding: 2px">Set up account runs SP Configuration wizard</td>
<td width="35%" style="border-width: 1px;border-style: solid;padding: 2px">Local Administrator on all the SharePoint Servers. SecurityAdmin and DB_Creator rights on the SQL Instance</td>
</tr>
<tr style="padding: 5px">
<td width="20%" style="border-width: 1px;border-style: solid;padding: 2px">SP_Pool</td>
<td width="45%" style="border-width: 1px;border-style: solid;padding: 2px">The Pool account is used to run the Web Application Pools</td>
<td width="35%" style="border-width: 1px;border-style: solid;padding: 2px">None</td>
</tr>
<tr style="padding: 5px">
<td width="20%" style="border-width: 1px;border-style: solid;padding: 2px">SP_Services</td>
<td width="45%" style="border-width: 1px;border-style: solid;padding: 2px">The Services Account is used to run the Service Application Pool</td>
<td width="35%" style="border-width: 1px;border-style: solid;padding: 2px">None</td>
</tr>
<tr style="padding: 5px">
<td width="20%" style="border-width: 1px;border-style: solid;padding: 2px">SP_Crawl</td>
<td width="45%" style="border-width: 1px;border-style: solid;padding: 2px">The Default Content Access Account for the Search Service Application</td>
<td width="35%" style="border-width: 1px;border-style: solid;padding: 2px">None</td>
</tr>
<tr style="padding: 5px">
<td width="20%" style="border-width: 1px;border-style: solid;padding: 2px">SP_Search</td>
<td width="45%" style="border-width: 1px;border-style: solid;padding: 2px">Service Account to run the SharePoint Search â€œWindows Serviceâ€</td>
<td width="35%" style="border-width: 1px;border-style: solid;padding: 2px">None</td>
</tr>
<tr style="padding: 5px">
<td width="20%" style="border-width: 1px;border-style: solid;padding: 2px">SP_UserProfiles</td>
<td width="45%" style="border-width: 1px;border-style: solid;padding: 2px">The User Profile Synchronization Account</td>
<td width="35%" style="border-width: 1px;border-style: solid;padding: 2px">None</td>
</tr>
<tr style="padding: 5px">
<td width="20%" style="border-width: 1px;border-style: solid;padding: 2px">SP_MySitePool</td>
<td width="45%" style="border-width: 1px;border-style: solid;padding: 2px">Used for the My Sites Web Application</td>
<td width="35%" style="border-width: 1px;border-style: solid;padding: 2px">None</td>
</tr>
<tr style="padding: 5px">
<td width="20%" style="border-width: 1px;border-style: solid;padding: 2px">SP_CacheSuperUser</td>
<td width="45%" style="border-width: 1px;border-style: solid;padding: 2px">Object Cache Service Account. The goals of the object cache are to reduce the load on the computer on which SQL Server is running, and to improve request latency and throughput. These user account must be properly configured to ensure that the object cache works correctly.</td>
<td width="35%" style="border-width: 1px;border-style: solid;padding: 2px">SharePoint: Must be an account that has Full Control access to the Web application.</td>
</tr>
<tr style="padding: 5px">
<td width="20%" style="border-width: 1px;border-style: solid;padding: 2px">SP_CacheSuperReader</td>
<td width="45%" style="border-width: 1px;border-style: solid;padding: 2px">Object Cache Service Account. The goals of the object cache are to reduce the load on the computer on which SQL Server is running, and to improve request latency and throughput. These user account must be properly configured to ensure that the object cache works correctly.</td>
<td width="35%" style="border-width: 1px;border-style: solid;padding: 2px">SharePoint: Must be an account that has Full Read access to the Web application</td>
</tr>
<tr style="padding: 5px">
<td width="20%" style="border-width: 1px;border-style: solid;padding: 2px">WF_Service</td>
<td width="45%" style="border-width: 1px;border-style: solid;padding: 2px">WorkFlow Manager Service Account</td>
<td width="35%" style="border-width: 1px;border-style: solid;padding: 2px">Local Administrator and SysAdmin rights on the SQL instance.</td>
</tr>
<tr style="padding: 5px">
<td width="20%" style="border-width: 1px;border-style: solid;padding: 2px">SP_MySitePool</td>
<td width="45%" style="border-width: 1px;border-style: solid;padding: 2px">Used for the My Sites Web Application</td>
<td width="35%" style="border-width: 1px;border-style: solid;padding: 2px">None</td>
</tr>
<tr style="padding: 5px">
<td width="20%" style="border-width: 1px;border-style: solid;padding: 2px">SP_VisioUser</td>
<td width="45%" style="border-width: 1px;border-style: solid;padding: 2px">Visio Unattended ID</td>
<td width="35%" style="border-width: 1px;border-style: solid;padding: 2px">None</td>
</tr>
<tr style="padding: 5px">
<td width="20%" style="border-width: 1px;border-style: solid;padding: 2px">SP_ExcelUser</td>
<td width="45%" style="border-width: 1px;border-style: solid;padding: 2px">Excel Unattended ID</td>
<td width="35%" style="border-width: 1px;border-style: solid;padding: 2px">None</td>
</tr>
<tr style="padding: 5px">
<td width="20%" style="border-width: 1px;border-style: solid;padding: 2px">SP_PerfPointUser</td>
<td width="45%" style="border-width: 1px;border-style: solid;padding: 2px">Performance Point Unattended ID</td>
<td width="35%" style="border-width: 1px;border-style: solid;padding: 2px">None</td>
</tr>
<tr style="padding: 5px">
<td width="20%" style="border-width: 1px;border-style: solid;padding: 2px">SQL_Admin</td>
<td width="45%" style="border-width: 1px;border-style: solid;padding: 2px">SQL Admin on the SQL Server. Used to Install the SQL Server.</td>
<td width="35%" style="border-width: 1px;border-style: solid;padding: 2px">Local Administrator on the SQL Server</td>
</tr>
<tr style="padding: 5px">
<td width="20%" style="border-width: 1px;border-style: solid;padding: 2px">SQL_Services</td>
<td width="45%" style="border-width: 1px;border-style: solid;padding: 2px">It is the service account for the following SQL Server services: MSSQLSERVER SQLSERVERAGENT</td>
<td width="35%" style="border-width: 1px;border-style: solid;padding: 2px">None</td>
</tr>
</tbody>
</table>
&nbsp;

<code><div>$talespinDom= (get-addomain).distinguishedname
$password = "RiseAndShine@" | ConvertTo-SecureString -AsPlainText -Force

$ouNameSP = "Service Accounts"
$ouWithDom = "OU=$ounameSP,$talespindom"</div>
<div>
#----------------------------&gt; Create Organizational Unit &lt;----------------------------

New-ADOrganizationalUnit -Name $OUNameSP -Path $talespinDom
Write-Host "OU $OUNameSP Created" -foregroundcolor green</div>
<div>
#-----------------------------&gt; SharePoint 2016 &lt;-------------------------------

$usersArr = @("SP_Farm","SP_Admin","SP_AppPool","SP_SiteAdmin","SP_Service","SP_Crawl","SP_Search",
"SP_UserProfile","SP_PortalSuperReader","SP_CacheSuperUser",
"SP_PerfPointUser","WF_Service","SP_MySitePool","SP_PortalSuperUser","SQL_Admin","SQL_Service")

foreach ($user in $usersArr) {
$accountCreated=$null
$accountCreated = New-ADUser -Name $user -DisplayName $user -SamAccountName $user -AccountPassword $password -ChangePasswordAtLogon $false -PassThru -PasswordNeverExpires $true -Path $ouWithDom -Enabled $true
if($accountCreated){
Write-Host "$user Created" -foregroundcolor green}
else
{    Write-Host "$user not Created" -foregroundcolor red}
}</div></code>]]></content:encoded>
    </item>
    <item>
      <title>Restrict people picker to get users from a particular domain.</title>
      <link>https://docs.microsoft.com/archive/blogs/voyage/restrict-people-picker-to-get-users-from-a-particular-domain</link>
      <pubDate>Sat, 05 Mar 2016 05:23:09 GMT</pubDate>
      <dc:creator><![CDATA[Deepa Lakhani]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/voyage/2016/03/05/restrict-people-picker-to-get-users-from-a-particular-domain/</guid>
      <description><![CDATA[&#160;  We had a request from client to allow to pick up users in a people picker on a site from...]]></description>
      <content:encoded><![CDATA[<p>&#160;</p>  <p>We had a request from client to allow to pick up users in a people picker on a site from particular domain</p>  <p>Let me elaborate the SharePoint environment involved here</p>  <p>The SharePoint farm is on a domain say Contoso.&#160; The client has another domain say Talespin.&#160; There is 2 way trust relationship between Contoso and Talespin.</p>  <p>The SharePoint farm and machine is joined to Contoso.&#160; Now for a particular site the client wants to be able to search and pick users from Talespin and not Contoso.</p>  <p>It took a long time for us to finally nail it.&#160; Some of the commands available on net were working with resolving users but not with search on people picker.</p>  <p>Here are the commands that worked</p>  <blockquote>   <p><strong><font color="#f79646">$wa</font> = <font color="#0000ff">Get-SPWebApplication</font><font color="#00d700"> -Identity</font> <font color="#c0504d"><a href="https://webapp">https://webapp</a></font></strong></p>    <p><strong><font color="#8fb08c"> #List the Domains</font>&#160; <br />&#160;<font color="#f79646">$wa</font>.PeoplePickerSettings.SearchActiveDirectoryDomains&#160; </strong></p> </blockquote>  <blockquote>   <p><strong><font color="#8fb08c">#Below script will add domain to Search of people picker</font>        <br />&#160;<font color="#f79646">$wa</font> = <font color="#0000ff">Get-SPWebApplication</font> <font color="#00d700">-Identity</font> </strong><strong><font color="#c0504d">https://webapp         <br /></font><font color="#f79646"> $ad</font> = <font color="#0000ff">New-Object</font> Microsoft.SharePoint.Administration.SPPeoplePickerSearchActiveDirectoryDomain&#160; <br /><font color="#f79646"> $ad</font>.DomainName = <font color="#c0504d">&quot;Talespin.local&quot;</font>&#160; <br /><font color="#f79646"> $ad</font>.IsForest = <font color="#f79646">$true</font>&#160; <br /><font color="#f79646"> $wa</font>.PeoplePickerSettings.SearchActiveDirectoryDomains.Add<font color="#f79646">($ad)</font>&#160; <br /><font color="#f79646"> $wa</font>.Update()&#160; <br /></strong></p> </blockquote>  <blockquote>   <p><strong><font color="#0000ff">stsadm</font> <font color="#00d700">-o</font> <font color="#000000">setproperty</font> <font color="#00d700">-url</font> <font color="#c0504d">https://webapp</font> <font color="#00d700">-pn</font> peoplepicker-distributionlistsearchdomains <font color="#00d700">-pv</font> <font color="#c0504d">Talespin.local</font></strong></p> </blockquote>  <blockquote>   <p><strong><font color="#8fb08c">#This will restrict people picker to resolve and search only from Talespin</font>        <br /><font color="#0000ff">stsadm</font> <font color="#00d700">-o</font> setproperty <font color="#00d700">-pn</font> peoplepicker-searchadcustomfilter <font color="#00d700">-pv </font>&quot;(&amp;(userPrincipalName<font color="#f79646">=*Talespin.local</font>)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))&quot; <font color="#00d700">-url</font> <font color="#f79646">https://siteurl</font></strong></p></blockquote>]]></content:encoded>
    </item>
    <item>
      <title>No trusted providers were found while creating new User Profile Sync Connection</title>
      <link>https://docs.microsoft.com/archive/blogs/voyage/no-trusted-providers-were-found-while-creating-new-user-profile-sync-connection</link>
      <pubDate>Wed, 22 Jul 2015 08:54:43 GMT</pubDate>
      <dc:creator><![CDATA[Deepa Lakhani]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/voyage/2015/07/22/no-trusted-providers-were-found-while-creating-new-user-profile-sync-connection/</guid>
      <description><![CDATA[&#160;  In my last post Sync FBA user profiles I discussed how to synchronize Form based...]]></description>
      <content:encoded><![CDATA[<p><font size="2">&#160;</font></p>  <p><font size="2">In my last post <a href="https://blogs.msdn.com/b/voyage/archive/2015/04/10/sync-ldap-users.aspx" target="_blank">Sync FBA user profiles</a> I discussed how to synchronize Form based authentication users with SharePoint.</font></p>  <p><font size="2">One of the steps is to create a new synchronization connection for FBA.&#160; Now I received couple of comments mentioning that they faced an issue where while creating new connection they got several errors like Value is not valid or drpClaimId is not a valid value.&#160; </font></p>  <p><font size="2">If you look closely you will see one of the drop downs have “No trusted providers found” as shown in below screen shot</font></p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/88/metablogapi/1185.image_434107F4.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-88-metablogapi/1185.image_5F00_434107F4.png"><font size="2"><img title="image" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/88/metablogapi/1614.image_thumb_0C66B3AE.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-88-metablogapi/1614.image_5F00_thumb_5F00_0C66B3AE.png" width="453" height="245" /></font></a><font size="2"> </font></p>  <p><font size="2">&#160;</font></p>  <p><font size="2">Now the Authentication Provider type should be Forms Based Authentication and still if you see No trusted providers were found there is a problem.</font></p>  <p><font size="2">Lets take a step back and see how to configure a web application for FBA (assuming you already have a solution which would do the actual authentication)</font></p>  <p><font size="2">There are 2 main steps to do this.</font></p>  <p><font size="2">1. Configure the membership provider and membership role in web config files</font></p>  <p><font size="2">2. Change the authentication provider setting in central admin for that web application.</font></p>  <p><font size="2">Step 1 – Changing web config.</font></p>  <p><font size="2">The web.config files need to be changed for web application, central admin and Security Token Service</font></p>  <p><font size="2">Web application web.config should have below changes.&#160; Add the key under app settings.</font></p>  <p><font size="2">&lt;appSettings&gt;</font></p>  <p><font size="2">&lt;add key=&quot;LDAPPath&quot; value=</font><a href="ldap://CN=Users,DC=Talespin,DC=local"><font size="2">LDAP://CN=Users,DC=Talespin,DC=local</font></a><font size="2"> /&gt;</font></p>  <p><font size="2">&lt;/appSettings&gt;</font></p>  <p><font size="2">Add providers under &lt;membership&gt;&lt;providers&gt; and rolemanager tag under &lt;rolemanager&gt;&lt;providers&gt;.&#160; Highlighted in Green shows the custom additions</font></p>  <p><font size="2">&lt;membership defaultProvider=&quot;i&quot;&gt;      <br />&#160;&#160;&#160;&#160; &lt;providers&gt;       <br /><font color="#008040">&#160;&#160;&#160;&#160; </font></font><font size="2"><font color="#008040"><strong>&#160; &lt;add name=&quot;LdapMember&quot; type=&quot;Microsoft.Office.Server.Security.LdapMembershipProvider,&amp;#xD;&amp;#xA; Microsoft.Office.Server, Version=15.0.0.0, Culture=neutral,&amp;#xD;&amp;#xA; PublicKeyToken=71e9bce111e9429c&quot; server=&quot;sk-dc.sickkids.local&quot; port=&quot;389&quot; useSSL=&quot;false&quot; userDNAttribute=&quot;distinguishedName&quot; userNameAttribute=&quot;sAMAccountName&quot; userContainer=&quot;OU=SPUsers,DC=Talespin,DC=LOCAL&quot; userObjectClass=&quot;person&quot; userFilter=&quot;(ObjectClass=person)&quot; scope=&quot;Subtree&quot; otherRequiredUserAttributes=&quot;sn,givenname,cn&quot; /&gt;          <br />&#160;&#160;&#160;&#160;&#160;&#160; &lt;add name=&quot;i&quot; type=&quot;Microsoft.SharePoint.Administration.Claims.SPClaimsAuthMembershipProvider, Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c&quot; /&gt;</strong>         <br /></font>&#160;&#160;&#160;&#160; &lt;/providers&gt;       <br />&#160;&#160; &lt;/membership&gt;       <br />&#160;&#160; &lt;roleManager defaultProvider=&quot;c&quot; enabled=&quot;true&quot; cacheRolesInCookie=&quot;false&quot;&gt;       <br />&#160;&#160;&#160;&#160; &lt;providers&gt;       <br />&#160; </font><font size="2"><strong><font color="#008000">&#160;&#160;&#160;&#160; &lt;add name=&quot;LdapRole&quot; type=&quot;Microsoft.Office.Server.Security.LdapRoleProvider, &amp;#xD;&amp;#xA;Microsoft.Office.Server, Version=15.0.0.0, Culture=neutral, &amp;#xD;&amp;#xA;PublicKeyToken=71e9bce111e9429c&quot; server=&quot;sk-dc.sickkids.local&quot; port=&quot;389&quot; useSSL=&quot;false&quot; groupContainer=&quot;OU=SPUsers,DC=Talespin,DC=LOCAL&quot; groupNameAttribute=&quot;cn&quot; groupNameAlternateSearchAttribute=&quot;samAccountName&quot; groupMemberAttribute=&quot;member&quot; userNameAttribute=&quot;sAMAccountName&quot; dnAttribute=&quot;distinguishedName&quot; groupFilter=&quot;(ObjectClass=group)&quot; userFilter=&quot;(ObjectClass=person)&quot; scope=&quot;Subtree&quot; /&gt;          <br />&#160;&#160;&#160;&#160;&#160;&#160; &lt;add name=&quot;c&quot; type=&quot;Microsoft.SharePoint.Administration.Claims.SPClaimsAuthRoleProvider, Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c&quot; /&gt;           <br /></font></strong>&#160;&#160;&#160;&#160; &lt;/providers&gt;       <br />&#160;&#160; &lt;/roleManager&gt;</font></p>  <p><font size="2">Central Admin web config should have below additions</font></p>  <p><font size="2">&#160;&#160;&#160; &lt;membership&gt;      <br />&#160;</font><font color="#008040"><font size="2">&#160; </font><font size="2"><strong>&lt;providers&gt;          <br />&#160;&#160;&#160;&#160;&#160; &lt;add name=&quot;LdapMember&quot;           <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; type=&quot;Microsoft.Office.Server.Security.LdapMembershipProvider,           <br />Microsoft.Office.Server, Version=15.0.0.0, Culture=neutral,           <br />PublicKeyToken=71e9bce111e9429c&quot;           <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; server=&quot;sk-dc.sickkids.local&quot;           <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; port=&quot;389&quot;           <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; useSSL=&quot;false&quot;           <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; userDNAttribute=&quot;distinguishedName&quot;           <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; userNameAttribute=&quot;sAMAccountName&quot;           <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; userContainer=&quot;OU=SPUsers,DC=SICKKIDS,DC=LOCAL&quot;           <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; userObjectClass=&quot;person&quot;           <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; userFilter=&quot;(ObjectClass=person)&quot;           <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; scope=&quot;Subtree&quot;           <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; otherRequiredUserAttributes=&quot;sn,givenname,cn&quot; /&gt;           <br />&#160;&#160; &lt;/providers&gt;</strong>         <br /></font></font><font size="2">&lt;/membership&gt;      <br />&#160;&#160;&#160; &lt;roleManager enabled=&quot;true&quot; defaultProvider=&quot;AspNetWindowsTokenRoleProvider&quot; &gt;       <br />&#160;</font><font size="2"><font color="#008000"><strong>&#160; &lt;providers&gt;          <br />&#160;&#160;&#160;&#160;&#160; &lt;add name=&quot;LdapRole&quot;           <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; type=&quot;Microsoft.Office.Server.Security.LdapRoleProvider,           <br />Microsoft.Office.Server, Version=15.0.0.0, Culture=neutral,           <br />PublicKeyToken=71e9bce111e9429c&quot;           <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; server=&quot;sk-dc.sickkids.local&quot;           <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; port=&quot;389&quot;           <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; useSSL=&quot;false&quot;           <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; groupContainer=&quot;OU=SPUsers,DC=SICKKIDS,DC=LOCAL&quot;           <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; groupNameAttribute=&quot;cn&quot;           <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; groupNameAlternateSearchAttribute=&quot;samAccountName&quot;           <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; groupMemberAttribute=&quot;member&quot;           <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; userNameAttribute=&quot;sAMAccountName&quot;           <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; dnAttribute=&quot;distinguishedName&quot;           <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; groupFilter=&quot;(ObjectClass=group)&quot;           <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; userFilter=&quot;(ObjectClass=person)&quot;           <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; scope=&quot;Subtree&quot; /&gt;           <br />&#160;&#160; &lt;/providers&gt;</strong></font>       <br />&lt;/roleManager&gt;</font></p>  <p><font size="2">&#160;</font></p>  <p><font size="2">Web config of STS is as below additions.</font></p>  <p><font size="2">&lt;system.web&gt;      <br />&#160; </font><font color="#008000" size="2"><strong>&#160;&#160; &lt;membership&gt;        <br />&#160;&#160; &lt;providers&gt;         <br />&#160;&#160;&#160;&#160;&#160; &lt;add name=&quot;LdapMember&quot;         <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; type=&quot;Microsoft.Office.Server.Security.LdapMembershipProvider,         <br />Microsoft.Office.Server, Version=15.0.0.0, Culture=neutral,         <br />PublicKeyToken=71e9bce111e9429c&quot;         <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; server=&quot;sk-dc.sickkids.local&quot;         <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; port=&quot;389&quot;         <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; useSSL=&quot;false&quot;         <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; userDNAttribute=&quot;distinguishedName&quot;         <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; userNameAttribute=&quot;sAMAccountName&quot;         <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; userContainer=&quot;OU=SPUsers,DC=SICKKIDS,DC=LOCAL&quot;         <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; userObjectClass=&quot;person&quot;         <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; userFilter=&quot;(ObjectClass=person)&quot;         <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; scope=&quot;Subtree&quot;         <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; otherRequiredUserAttributes=&quot;sn,givenname,cn&quot; /&gt;         <br />&#160;&#160; &lt;/providers&gt;         <br />&lt;/membership&gt; </strong></font></p>  <p><font size="2"><font color="#008000"><strong>&lt;roleManager enabled=&quot;true&quot;&gt;          <br />&#160;&#160; &lt;providers&gt;           <br />&#160;&#160;&#160;&#160;&#160; &lt;add name=&quot;LdapRole&quot;           <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; type=&quot;Microsoft.Office.Server.Security.LdapRoleProvider,           <br />Microsoft.Office.Server, Version=15.0.0.0, Culture=neutral,           <br />PublicKeyToken=71e9bce111e9429c&quot;           <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; server=&quot;sk-dc.sickkids.local&quot;           <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; port=&quot;389&quot;           <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; useSSL=&quot;false&quot;           <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; groupContainer=&quot;OU=SPUsers,DC=SICKKIDS,DC=LOCAL&quot;           <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; groupNameAttribute=&quot;cn&quot;           <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; groupNameAlternateSearchAttribute=&quot;samAccountName&quot;           <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; groupMemberAttribute=&quot;member&quot;           <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; userNameAttribute=&quot;sAMAccountName&quot;           <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; dnAttribute=&quot;distinguishedName&quot;           <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; groupFilter=&quot;(ObjectClass=group)&quot;           <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; userFilter=&quot;(ObjectClass=person)&quot;           <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; scope=&quot;Subtree&quot; /&gt;           <br />&#160;&#160; &lt;/providers&gt;           <br />&lt;/roleManager&gt;           <br /></strong></font>&#160; &lt;/system.web&gt;</font></p>  <p><font size="2">2nd steps is to change configuration of application.&#160; To do so navigate to central admin go to application management.&#160; Select web application and click Authentication Providers.&#160; </font></p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/88/metablogapi/8475.image_32C896F9.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-88-metablogapi/8475.image_5F00_32C896F9.png"><font size="2"><img title="image" style="border-top: 0px; border-right: 0px; border-bottom: 0px; border-left: 0px; display: inline" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/88/metablogapi/4762.image_thumb_29DB956B.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-88-metablogapi/4762.image_5F00_thumb_5F00_29DB956B.png" width="412" height="227" /></font></a><font size="2"> </font></p>  <p><font size="2">Click on default or if you have some other zone.&#160; Enable FormBased Authentication by checking the check box for FBA.</font></p>  <p><font size="2">Next is to provide the membershipprovider name.&#160; This name is what you added in the web.config file above.&#160; This name should match the string in web.config </font></p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/88/metablogapi/1641.image_70588573.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-88-metablogapi/1641.image_5F00_70588573.png"><font size="2"><img title="image" style="border-top: 0px; border-right: 0px; border-bottom: 0px; border-left: 0px; display: inline" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/88/metablogapi/5488.image_thumb_0BFD116A.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-88-metablogapi/5488.image_5F00_thumb_5F00_0BFD116A.png" width="366" height="37" /></font></a><font size="2"> </font></p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/88/metablogapi/5282.image_6B75D1B7.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-88-metablogapi/5282.image_5F00_6B75D1B7.png"><font size="2"><img title="image" style="border-top: 0px; border-right: 0px; border-bottom: 0px; border-left: 0px; display: inline" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/88/metablogapi/5226.image_thumb_20162DF3.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-88-metablogapi/5226.image_5F00_thumb_5F00_20162DF3.png" width="382" height="32" /></font></a><font size="2"> </font></p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/88/metablogapi/8468.image_7B84A06E.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-88-metablogapi/8468.image_5F00_7B84A06E.png"><font size="2"><img title="image" style="border-top: 0px; border-right: 0px; border-bottom: 0px; border-left: 0px; display: inline" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/88/metablogapi/4263.image_thumb_4FD3D672.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-88-metablogapi/4263.image_5F00_thumb_5F00_4FD3D672.png" width="363" height="458" /></font></a><font size="2"> </font></p>  <p><font size="2"></font></p>  <p><strong><u><font size="2">Note that this is case sensitive also .&#160; If this name or case does not match it gives the “No trusted provider” in the drop down when you try to add the connection.</font></u></strong></p>  <p><font size="2">&#160;</font></p>  <p><font size="2"></font></p>  <p><font size="2"></font></p>  <p><font size="2"></font></p>  <p><font size="2"></font></p>]]></content:encoded>
    </item>
    <item>
      <title>SharePoint database machine running out of disk space.</title>
      <link>https://docs.microsoft.com/archive/blogs/voyage/sharepoint-database-machine-running-out-of-disk-space</link>
      <pubDate>Thu, 28 May 2015 06:42:48 GMT</pubDate>
      <dc:creator><![CDATA[Deepa Lakhani]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/voyage/2015/05/28/sharepoint-database-machine-running-out-of-disk-space/</guid>
      <description><![CDATA[This is a common problem.&#160; The first thing you might want to inspect is the database size....]]></description>
      <content:encoded><![CDATA[<p><font size="2"></font></p>  <p><font size="2">This is a common problem.&#160; The first thing you might want to inspect is the database size. </font></p>  <p><font size="2">Navigate to C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA</font></p>  <p><font size="2">Check the size of SharePoint_Config database.&#160; If this database is taking more disk space you are at the right page.</font></p>  <p><font size="2">Run the following commands and you should be good.</font></p>  <p><font size="2">alter database sharepoint_config set recovery simple     <br />dbcc shrinkfile(sharepoint_config_log,50)      <br />alter database sharepoint_config set recovery full</font></p>  <p><font size="2">&#160;</font></p>]]></content:encoded>
    </item>
    <item>
      <title>Cannot add the specified assembly to the global assembly cache: Microsoft.Practices.SharePoint.Common.dll.</title>
      <link>https://docs.microsoft.com/archive/blogs/voyage/cannot-add-the-specified-assembly-to-the-global-assembly-cache-microsoft-practices-sharepoint-common-dll</link>
      <pubDate>Tue, 26 May 2015 10:36:24 GMT</pubDate>
      <dc:creator><![CDATA[Deepa Lakhani]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/voyage/2015/05/26/cannot-add-the-specified-assembly-to-the-global-assembly-cache-microsoft-practices-sharepoint-common-dll/</guid>
      <description><![CDATA[&#160;  Had this issue for a while.&#160;&#160; Some said restart IIS, Powershell etc  I closed...]]></description>
      <content:encoded><![CDATA[<p>&#160;</p>  <p>Had this issue for a while.&#160;&#160; Some said restart IIS, Powershell etc</p>  <p>I closed Visual Studio restarted IIS that was open and it worked.</p>  <p>Posting it here just in case some one else facing it.</p>]]></content:encoded>
    </item>
    <item>
      <title>Access denied with SPSecurity.RunWithElevated privileges</title>
      <link>https://docs.microsoft.com/archive/blogs/voyage/access-denied-with-spsecurity-runwithelevated-privileges</link>
      <pubDate>Tue, 12 May 2015 13:43:00 GMT</pubDate>
      <dc:creator><![CDATA[Deepa Lakhani]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/voyage/2015/05/12/access-denied-with-spsecurity-runwithelevated-privileges/</guid>
      <description><![CDATA[&nbsp;
A fellow colleague was trying to do something in web part that required more privileges
So...]]></description>
      <content:encoded><![CDATA[<p>&nbsp;</p>
<p><span style="font-size: small;">A fellow colleague was trying to do something in web part that required more privileges</span></p>
<p><span style="font-size: small;">So as all of us would do he wrapped the code round SPSecurity.RunWithElevatedPrivileges.</span></p>
<p><span style="font-size: small;">It is then he started receiving errors on access denied each time he tried to add the web part.</span></p>
<p><span style="font-size: small;">Below was his code </span></p>
<p>&nbsp;</p>
<p><span style="font-size: small;"><span style="color: #2b91af; font-family: Consolas;"><span style="color: #2b91af; font-family: Consolas;"><span style="color: #2b91af; font-family: Consolas;">SPSecurity</span></span></span><span style="font-family: Consolas;"><span style="font-family: Consolas;">.RunWithElevatedPrivileges(</span></span><span style="color: #0000ff; font-family: Consolas;"><span style="color: #0000ff; font-family: Consolas;"><span style="color: #0000ff; font-family: Consolas;">delegate</span></span></span><span style="font-family: Consolas;"><span style="font-family: Consolas;">()</span></span></span></p>
<p>&nbsp;</p>
<p><span style="font-size: small;">{</span></p>
<p>&nbsp;</p>
<p><span style="font-size: small;"><span style="color: #2b91af; font-family: Consolas;"><span style="color: #2b91af; font-family: Consolas;"><span style="color: #2b91af; font-family: Consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span></span><span style="background-color: #ffff00;"><span style="color: #2b91af; font-family: Consolas;"><span style="color: #2b91af; font-family: Consolas;"><span style="color: #2b91af; font-family: Consolas;"> SPSite</span></span></span><span style="font-family: Consolas;"><span style="font-family: Consolas;"> site = </span></span><span style="color: #2b91af; font-family: Consolas;"><span style="color: #2b91af; font-family: Consolas;"><span style="color: #2b91af; font-family: Consolas;">SPContext</span></span></span><span style="font-family: Consolas;"><span style="font-family: Consolas;">.Current.Site;</span></span></span></span></p>
<p>&nbsp;</p>
<p><span style="font-size: small;"><span style="color: #2b91af; font-family: Consolas;"><span style="color: #2b91af; font-family: Consolas;"><span style="color: #2b91af; font-family: Consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span></span><span style="background-color: #ffff00;"><span style="color: #2b91af; font-family: Consolas;"><span style="color: #2b91af; font-family: Consolas;"><span style="color: #2b91af; font-family: Consolas;">SPWeb</span></span></span><span style="font-family: Consolas;"><span style="font-family: Consolas;"> web = </span></span><span style="color: #2b91af; font-family: Consolas;"><span style="color: #2b91af; font-family: Consolas;"><span style="color: #2b91af; font-family: Consolas;">SPContext</span></span></span><span style="font-family: Consolas;"><span style="font-family: Consolas;">.Current.Web;</span></span></span></span></p>
<p>&nbsp;</p>
<p><span style="font-size: small;"><span style="color: #2b91af; font-family: Consolas;"><span style="color: #2b91af; font-family: Consolas;"><span style="color: #2b91af; font-family: Consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SPWebCollection</span></span></span><span style="font-family: Consolas;"><span style="font-family: Consolas;"> webs = web.Webs;</span></span></span></p>
<p><span style="font-size: small;">...&nbsp;&nbsp;</span></p>
<p><span style="font-size: small;"><span style="font-family: Consolas;"><span style="font-family: Consolas;"> });</span></span><span style="color: #008000; font-family: Consolas;"><span style="color: #008000; font-family: Consolas;"><span style="color: #008000; font-family: Consolas;">//Close "SPSecurity.RunWithElevatedPrivileges" block</span></span></span></span></p>
<p><span style="font-size: small;">&nbsp;</span></p>
<p><span style="font-size: small;">This code is not correct because of the lines below</span></p>
<p><span style="font-size: small; background-color: #ffff00;">SPSite site = SPContext.Current.Site; </span></p>
<p><span style="font-size: small; background-color: #ffff00;">SPWeb web = SPContext.Current.Web;</span></p>
<p>&nbsp;</p>
<p><span style="font-size: small;">SPContext is something that exists and is not created from within RunWithElevatedPrivileges.&nbsp; Hence only object created with ElevatedPriviliges give the user the elevated privileges.</span></p>
<p><span style="font-size: small;">Hence the below code should work fine.</span></p>
<p>&nbsp;</p>
<p><span style="font-size: small;"><span style="color: #2b91af; font-family: Consolas;"><span style="color: #2b91af; font-family: Consolas;"><span style="color: #2b91af; font-family: Consolas;">SPSecurity</span></span></span><span style="font-family: Consolas;"><span style="font-family: Consolas;">.RunWithElevatedPrivileges(</span></span><span style="color: #0000ff; font-family: Consolas;"><span style="color: #0000ff; font-family: Consolas;"><span style="color: #0000ff; font-family: Consolas;">delegate</span></span></span><span style="font-family: Consolas;"><span style="font-family: Consolas;">()</span></span></span></p>
<p><span style="font-family: Consolas; font-size: small;"><span style="font-family: Consolas;">{</span></span></p>
<p><span style="font-size: small;"><span style="color: #2b91af; font-family: Consolas;"><span style="color: #2b91af; font-family: Consolas;"><span style="color: #2b91af; font-family: Consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SPSite</span></span></span><span style="font-family: Consolas;"><span style="font-family: Consolas;"> site = </span></span><span style="color: #2b91af; font-family: Consolas;"><span style="color: #2b91af; font-family: Consolas;"><span style="color: #2b91af; font-family: Consolas;">SPContext</span></span></span><span style="font-family: Consolas;"><span style="font-family: Consolas;">.Current.Site;</span></span></span></p>
<p><span style="font-size: small;"><span style="color: #2b91af; font-family: Consolas;"><span style="color: #2b91af; font-family: Consolas;"><span style="color: #2b91af; font-family: Consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SPWeb</span></span></span><span style="font-family: Consolas;"><span style="font-family: Consolas;"> web = </span></span><span style="color: #2b91af; font-family: Consolas;"><span style="color: #2b91af; font-family: Consolas;"><span style="color: #2b91af; font-family: Consolas;">SPContext</span></span></span><span style="font-family: Consolas;"><span style="font-family: Consolas;">.Current.Web;</span></span></span></p>
<p><span style="font-size: small;"><span style="color: #0000ff; font-family: Consolas;"><span style="color: #0000ff; font-family: Consolas;"><span style="color: #0000ff; font-family: Consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string</span></span></span><span style="font-family: Consolas;"><span style="font-family: Consolas;"> url = </span></span><span style="color: #2b91af; font-family: Consolas;"><span style="color: #2b91af; font-family: Consolas;"><span style="color: #2b91af; font-family: Consolas;">SPContext</span></span></span><span style="font-family: Consolas;"><span style="font-family: Consolas;">.Current.Web.Url;</span></span></span></p>
<p><span style="font-size: small;"><span style="color: #0000ff; font-family: Consolas;"><span style="color: #0000ff; font-family: Consolas;"><span style="color: #0000ff; font-family: Consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span></span><span style="background-color: #ffff00;"><span style="color: #0000ff; font-family: Consolas;"><span style="color: #0000ff; font-family: Consolas;"><span style="color: #0000ff; font-family: Consolas;"> using</span></span></span><span style="font-family: Consolas;"><span style="font-family: Consolas;"> (</span></span><span style="color: #2b91af; font-family: Consolas;"><span style="color: #2b91af; font-family: Consolas;"><span style="color: #2b91af; font-family: Consolas;">SPSite</span></span></span><span style="font-family: Consolas;"><span style="font-family: Consolas;"> localSiteObj = </span></span><span style="color: #0000ff; font-family: Consolas;"><span style="color: #0000ff; font-family: Consolas;"><span style="color: #0000ff; font-family: Consolas;">new</span></span></span><span style="color: #2b91af; font-family: Consolas;"><span style="color: #2b91af; font-family: Consolas;"><span style="color: #2b91af; font-family: Consolas;">SPSite</span></span></span><span style="font-family: Consolas;"><span style="font-family: Consolas;">(url))</span></span></span></span></p>
<p><span style="font-size: small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span></p>
<p><span style="font-size: small; background-color: #ffff00;"><span style="color: #0000ff; font-family: Consolas;"><span style="color: #0000ff; font-family: Consolas;"><span style="color: #0000ff; font-family: Consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; using</span></span></span><span style="font-family: Consolas;"><span style="font-family: Consolas;"> (</span></span><span style="color: #2b91af; font-family: Consolas;"><span style="color: #2b91af; font-family: Consolas;"><span style="color: #2b91af; font-family: Consolas;">SPWeb</span></span></span><span style="font-family: Consolas;"><span style="font-family: Consolas;"> localWebObj = localSiteObj.OpenWeb())</span></span></span></p>
<p><span style="font-size: small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<span style="color: #2b91af; font-family: Consolas;"><span style="color: #2b91af; font-family: Consolas;"><span style="color: #2b91af; font-family: Consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SPWebCollection</span></span></span><span style="font-family: Consolas;"><span style="font-family: Consolas;"> webs = localWebObj.Webs;</span></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span></p>
<p><span style="font-size: small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span></p>
<p><span style="font-size: small;"><span style="font-family: Consolas;"><span style="font-family: Consolas;">});</span></span><span style="color: #008000; font-family: Consolas;"><span style="color: #008000; font-family: Consolas;"><span style="color: #008000; font-family: Consolas;">//Close "SPSecurity.RunWithElevatedPrivileges" block</span></span></span></span></p>
<pre class="scroll"><span style="font-size: small;"><code class="cplusplus"></code>&nbsp;&nbsp;</span></pre>
<p><span style="font-size: small;">If you notice localSiteObj and localWebObj are created within elevatedPrivileges and hence would work fine.&nbsp; You can use SPContext also within elevatedPrivileges but only to do stuff which does not need extra privileges.</span></p>
<p><span style="font-size: small;">Hope it clarifies</span></p>]]></content:encoded>
    </item>
    <item>
      <title>Confirm delete with Ajax</title>
      <link>https://docs.microsoft.com/archive/blogs/voyage/confirm-delete-with-ajax</link>
      <pubDate>Thu, 07 May 2015 14:33:16 GMT</pubDate>
      <dc:creator><![CDATA[Deepa Lakhani]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/voyage/2015/05/07/confirm-delete-with-ajax/</guid>
      <description><![CDATA[&#160;  Normally we would like to provide a confirmation dialog to the user before deleting...]]></description>
      <content:encoded><![CDATA[<p><font size="2">&#160;</font></p>  <p><font size="2">Normally we would like to provide a confirmation dialog to the user before deleting something and initiate an AJAX request if user says yes to delete. Standard way looks like this:</font></p>  <p><font size="2">&lt;asp:Button ID=&quot;Button1&quot; runat=&quot;server&quot; <strong>OnClientClick=&quot;return confirm('Are you sure you want to delete?');&quot;</strong> /&gt;</font></p>  <p><font size="2">To work with AJAX when the button is AJAX-enabled or inside update panel or added to AJAX setting to AjaxManager it needs to be changed a bit.</font></p>  <p><font size="2">&lt;asp:Button ID=&quot;Button1&quot; runat=&quot;server&quot; <strong><u>OnClientClick=&quot;if (!confirm('Are you sure?')) return false;&quot;</u></strong> /&gt;</font></p>  <p><font size="2">So basically with ajax requests, return from javascript cancels the post back it does not matter whether it returns true or false.&#160; So the work around is return only when you want to cancel the post back.</font></p>  <p><font size="2"></font></p>]]></content:encoded>
    </item>
    <item>
      <title>Sync LDAP users with SharePoint site for Forms Authentication</title>
      <link>https://docs.microsoft.com/archive/blogs/voyage/sync-ldap-users-with-sharepoint-site-for-forms-authentication</link>
      <pubDate>Fri, 10 Apr 2015 08:10:52 GMT</pubDate>
      <dc:creator><![CDATA[Deepa Lakhani]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/voyage/2015/04/10/sync-ldap-users-with-sharepoint-site-for-forms-authentication/</guid>
      <description><![CDATA[&#160;  In my earlier post Getting Updates to User profile in SharePoint, I wrote about AD updates...]]></description>
      <content:encoded><![CDATA[<p>&#160;</p>  <p>In my earlier post <a href="https://blogs.msdn.com/b/voyage/archive/2015/04/02/updates-in-ad-not-reflecting-in-sharepoint.aspx" target="_blank">Getting Updates to User profile in SharePoint</a>, I wrote about AD updates not rolling out to site for defafult AD user i.e. Windows authentication.&#160; This post talks about the same problem but for Forms Authentication.</p>  <p>For simplicity I am using an example where I created LDAP Connection with users in AD.</p>  <p>This article will not cover how to create ldap connection but it is about trouble shooting if the properties of the ldap users are not shown and reflected in SharePoint site.</p>  <p>So there are 2 things here.&#160; First the ldap users properties should be seen and reflected in User profile and second in the site collection.</p>  <p>So for ldap users’ properties to sync with SharePoint below are the steps that needs to be done</p>  <p>Check the properties are not synced.&#160; From Central Admin –&gt; Navigate to Manage Service Applications –&gt; Click on User Profile Service Application.</p>  <p>Click Manage User Profiles</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/88/metablogapi/7534.image_3530E7CC.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-88-metablogapi/7534.image_5F00_3530E7CC.png"><img title="image" style="border-top: 0px; border-right: 0px; border-bottom: 0px; border-left: 0px; display: inline" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/88/metablogapi/7140.image_thumb_7E569385.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-88-metablogapi/7140.image_5F00_thumb_5F00_7E569385.png" width="384" height="183" /></a> </p>  <p>Put a user name and click Find.</p>  <p>Now if you find the user’s profile, click Edit profile and see the properties like Name, Department etc.&#160; It should sync with the source.&#160; If it is then User Profile sync is happening.&#160; If not or even if the profile is not there the sync is not working.</p>  <p>Navigate back to Manager User Profile Service Application page and click on Configure Synchronization Connections.</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/88/metablogapi/1526.image_12DBE304.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-88-metablogapi/1526.image_5F00_12DBE304.png"><img title="image" style="border-top: 0px; border-right: 0px; border-bottom: 0px; border-left: 0px; display: inline" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/88/metablogapi/0636.image_thumb_672B1907.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-88-metablogapi/0636.image_5F00_thumb_5F00_672B1907.png" width="429" height="216" /></a> </p>  <p>Click on Create new connection.</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/88/metablogapi/4375.image_5B955BC8.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-88-metablogapi/4375.image_5F00_5B955BC8.png"><img title="image" style="border-top: 0px; border-right: 0px; border-bottom: 0px; border-left: 0px; display: inline" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/88/metablogapi/1134.image_thumb_22124BD1.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-88-metablogapi/1134.image_5F00_thumb_5F00_22124BD1.png" width="381" height="188" /></a> </p>  <p>Select Forms Authentication in Authentication Provider Type.&#160; Authentication Provider Instance is populated in drop down based on the settings configured for authentication in web config.&#160; Provide with Account name and Password. </p>  <p>This account should have replicate directory permission.&#160;&#160; Be careful with this as if the account does not have sufficient priveliges there is no error thrown, just when the profile sync is run it does not import profiles from the source.&#160; So it is not evident that the problem is insufficient priveleges</p>  <p>Click Populate Containers.&#160; Select whatever you need to sync.&#160; In my case it is just SPUsers OU.</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/88/metablogapi/1641.image_6484EE07.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-88-metablogapi/1641.image_5F00_6484EE07.png"><img title="image" style="border-top: 0px; border-right: 0px; border-bottom: 0px; border-left: 0px; display: inline" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/88/metablogapi/0676.image_thumb_790A3D85.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-88-metablogapi/0676.image_5F00_thumb_5F00_790A3D85.png" width="481" height="195" /></a> </p>  <p>Again careful here as the account specified is used to populate the containers.&#160; If the account has AD read permissions, it will populate the containers but will not import profiles silently without any error if it does not have replicate directory permissions.</p>  <p>Once done click ok.&#160; </p>  <p>Click on Manage User Properties.&#160; Search for Claim User Identifier</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/88/metablogapi/0820.image_2DAA99C1.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-88-metablogapi/0820.image_5F00_2DAA99C1.png"><img title="image" style="border-top: 0px; border-right: 0px; border-bottom: 0px; border-left: 0px; display: inline" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/88/metablogapi/0435.image_thumb_0D235A0F.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-88-metablogapi/0435.image_5F00_thumb_5F00_0D235A0F.png" width="425" height="222" /></a> </p>  <p>Click Edit and on the next page you need to add mapping.</p>  <p>So basically in claims-based Web applications, SharePoint Server uses the Claim User Identifier property (SPS-ClaimID) to match an authenticated user to the correct user profile. If the SPS-ClaimID is not mapped to the directory service attribute that you want to use as the user identifier, when a user is authenticated, he or she is not matched to the correct user profile and will not see the imported user profile data.</p>  <p>To resolve this issue, map the SPS-ClaimID property to the directory service attribute that uniquely identifies the user in my case here it is samAccountName.</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/88/metablogapi/1425.image_31301A1C.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-88-metablogapi/1425.image_5F00_31301A1C.png"><img title="image" style="border-top: 0px; border-right: 0px; border-bottom: 0px; border-left: 0px; display: inline" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/88/metablogapi/1031.image_thumb_259A5CDD.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-88-metablogapi/1031.image_5F00_thumb_5F00_259A5CDD.png" width="485" height="170" /></a> </p>  <p>Once done and Start the profile synchronization. </p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/88/metablogapi/7875.image_73BB56D4.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-88-metablogapi/7875.image_5F00_73BB56D4.png"><img title="image" style="border-top: 0px; border-right: 0px; border-bottom: 0px; border-left: 0px; display: inline" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/88/metablogapi/0535.image_thumb_0840A653.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-88-metablogapi/0535.image_5F00_thumb_5F00_0840A653.png" width="469" height="147" /></a> </p>  <p> When the profile sync starts you would see Synchronizing and Stop links.&#160; Click on Synchronizing link to see the status.&#160; Check the status once in a while.</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/88/metablogapi/8473.image_6ACE5546.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-88-metablogapi/8473.image_5F00_6ACE5546.png"><img title="image" style="border-top: 0px; border-right: 0px; border-bottom: 0px; border-left: 0px; display: inline" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/88/metablogapi/3122.image_thumb_3F1D8B4A.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-88-metablogapi/3122.image_5F00_thumb_5F00_3F1D8B4A.png" width="469" height="200" /></a> </p>  <p>Once done click on Manager User Profile and search for the user you searched in step 1.&#160; Check the user profile properties should be updated.&#160;&#160; </p>  <p>Next task is to go to a site collection and verify if the properties got propagated to site.</p>  <p>Navigate to web application, try to login with one of the ldap users and see the name that appears in the right corner.&#160; If it is the updated name, the properties are updated, if not it means the user updates are not propagated to site.</p>  <p>This is a small issue that I noticed that after a ldap user logs in the site, the profile is pushed to the site and sometimes you need to run Profile synchronization to push the updates to the profile.&#160; So if you cannot see the updates on the site but can see on user profile manage users profile page, try logging in the site with that user or add that user to some group (so that user’s profile is added to the site, later you can remove the user if you don't want him to be in any groups) and run the profile sync.</p>  <p>Hope it helps.</p>]]></content:encoded>
    </item>
    <item>
      <title>Updates in AD not reflecting in SharePoint</title>
      <link>https://docs.microsoft.com/archive/blogs/voyage/updates-in-ad-not-reflecting-in-sharepoint</link>
      <pubDate>Thu, 02 Apr 2015 09:35:22 GMT</pubDate>
      <dc:creator><![CDATA[Deepa Lakhani]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/voyage/2015/04/02/updates-in-ad-not-reflecting-in-sharepoint/</guid>
      <description><![CDATA[&#160;  Whenever user properties are updated in Active Directory, following needs to be done to have...]]></description>
      <content:encoded><![CDATA[<p>&#160;</p>  <p>Whenever user properties are updated in Active Directory, following needs to be done to have them reflected in SharePoint</p>  <p>1. Run User Profile Synchronization</p>  <p>Go to Central Admin –&gt; Navigate to Manage Applications Service –&gt; Find User Profile Synchronisation and run full sync</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/88/metablogapi/1134.image_38E80B97.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-88-metablogapi/1134.image_5F00_38E80B97.png"><img title="image" style="border-top: 0px; border-right: 0px; border-bottom: 0px; border-left: 0px; display: inline" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/88/metablogapi/1256.image_thumb_488AA759.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-88-metablogapi/1256.image_5F00_thumb_5F00_488AA759.png" width="311" height="168" /></a> </p>  <p>&#160;</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/88/metablogapi/6763.image_71954655.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-88-metablogapi/6763.image_5F00_71954655.png"><img title="image" style="border-top: 0px; border-right: 0px; border-bottom: 0px; border-left: 0px; display: inline" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/88/metablogapi/4721.image_thumb_510E06A3.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-88-metablogapi/4721.image_5F00_thumb_5F00_510E06A3.png" width="422" height="157" /></a> </p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/88/metablogapi/5635.image_1380A8DA.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-88-metablogapi/5635.image_5F00_1380A8DA.png"><img title="image" style="border-top: 0px; border-right: 0px; border-bottom: 0px; border-left: 0px; display: inline" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/88/metablogapi/4645.image_thumb_52DE5C6A.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-88-metablogapi/4645.image_5F00_thumb_5F00_52DE5C6A.png" width="393" height="213" /></a> </p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/88/metablogapi/4251.image_47489F2B.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-88-metablogapi/4251.image_5F00_47489F2B.png"><img title="image" style="border-top: 0px; border-right: 0px; border-bottom: 0px; border-left: 0px; display: inline" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/88/metablogapi/4572.image_thumb_37A8941A.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-88-metablogapi/4572.image_5F00_thumb_5F00_37A8941A.png" width="515" height="151" /></a> </p>  <p>Click Start Full Synchronization</p>  <p>Notice the status of synchronization in the Manage Profile Service screen</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/88/metablogapi/7725.image_57576DE2.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-88-metablogapi/7725.image_5F00_57576DE2.png"><img title="image" style="border-top: 0px; border-right: 0px; border-bottom: 0px; border-left: 0px; display: inline" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/88/metablogapi/3652.image_thumb_5993F69E.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-88-metablogapi/3652.image_5F00_thumb_5F00_5993F69E.png" width="438" height="172" /></a> </p>  <p>Once done to verify user values have changed in profile click on Manage User Profile on the same screen</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/88/metablogapi/0245.image_74CC4F9F.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-88-metablogapi/0245.image_5F00_74CC4F9F.png"><img title="image" style="border-top: 0px; border-right: 0px; border-bottom: 0px; border-left: 0px; display: inline" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/88/metablogapi/0763.image_thumb_4C528EED.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-88-metablogapi/0763.image_5F00_thumb_5F00_4C528EED.png" width="523" height="311" /></a> </p>  <p>Find the user and click the Account name to check the profile</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/88/metablogapi/5875.image_07A5F4AC.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-88-metablogapi/5875.image_5F00_07A5F4AC.png"><img title="image" style="border-top: 0px; border-right: 0px; border-bottom: 0px; border-left: 0px; display: inline" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/88/metablogapi/2766.image_thumb_0739C1B7.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-88-metablogapi/2766.image_5F00_thumb_5F00_0739C1B7.png" width="636" height="267" /></a> </p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/88/metablogapi/8546.image_1BBF1135.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-88-metablogapi/8546.image_5F00_1BBF1135.png"><img title="image" style="border-top: 0px; border-right: 0px; border-bottom: 0px; border-left: 0px; display: inline" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/88/metablogapi/6724.image_thumb_1A7F99B8.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-88-metablogapi/6724.image_5F00_thumb_5F00_1A7F99B8.png" width="442" height="179" /></a> </p>  <p>Notice the changes are reflected here.&#160; I changed the display name, first name and last name and they have changed.&#160; Do not update anything here, this is to just see if changes are reflected from AD</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/88/metablogapi/3603.image_63A54571.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-88-metablogapi/3603.image_5F00_63A54571.png"><img title="image" style="border-top: 0px; border-right: 0px; border-bottom: 0px; border-left: 0px; display: inline" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/88/metablogapi/4505.image_thumb_580F8832.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-88-metablogapi/4505.image_5F00_thumb_5F00_580F8832.png" width="616" height="267" /></a> </p>  <p></p>  <p></p>  <p></p>  <p></p>  <p></p>  <p></p>  <p></p>  <p>&#160;</p>  <p>Now if you navigate to the site collection and search for the user I do not see the reflected name yet.</p>  <p>This is because the user is not synchronizing correctly to a Site Collection.</p>  <p>To do this, note what permission the user has.</p>  <p>Navigate to Site Setting of the site collection in question</p>  <p>Click on Site Permissions</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/88/metablogapi/4520.image_1E8C783B.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-88-metablogapi/4520.image_5F00_1E8C783B.png"><img title="image" style="border-top: 0px; border-right: 0px; border-bottom: 0px; border-left: 0px; display: inline" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/88/metablogapi/4135.image_thumb_65096843.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-88-metablogapi/4135.image_5F00_thumb_5F00_65096843.png" width="557" height="239" /></a> </p>  <p>Click on Check Permissions</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/88/metablogapi/1817.image_277C0A7A.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-88-metablogapi/1817.image_5F00_277C0A7A.png"><img title="image" style="border-top: 0px; border-right: 0px; border-bottom: 0px; border-left: 0px; display: inline" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/88/metablogapi/4477.image_thumb_06F4CAC8.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-88-metablogapi/4477.image_5F00_thumb_5F00_06F4CAC8.png" width="486" height="291" /></a> </p>  <p>Give user name here and note the groups and permissions of the user.</p>  <p>So navigate to this page <var>&lt;Site URL&gt;</var>/_layouts/people.aspx?MembershipGroupId=0</p>  <p>Delete the user from this list.</p>  <p><b>Important</b> If you remove the user from the <strong>All People</strong> group, all the user's permissions to this Site Collection are removed. Before you remove the user's permissions and re-add them, note the user's permissions. To do this, on the <strong>Site Actions</strong> menu, click <strong>Site Permissions</strong>, and then click <strong>Check Permissions</strong>.    <br />The <b>All People</b> group is hidden in SharePoint 2010. However, to access this group, you can modify the following URL in the browser: </p>  <p><var>&lt; Site URL&gt;</var>/_layouts/people.aspx?MembershipGroupId=0 </p>  <p>Having done this re-add the users to the groups it belonged to and give it the permission it had.</p>  <p>Once done the user’s properties are now synced with site collection and update properties started getting reflected.</p>]]></content:encoded>
    </item>
    <item>
      <title>Cannot recognize the XML namespace of this Web Part</title>
      <link>https://docs.microsoft.com/archive/blogs/voyage/cannot-recognize-the-xml-namespace-of-this-web-part</link>
      <pubDate>Mon, 23 Feb 2015 13:25:24 GMT</pubDate>
      <dc:creator><![CDATA[Deepa Lakhani]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/voyage/2015/02/23/cannot-recognize-the-xml-namespace-of-this-web-part/</guid>
      <description><![CDATA[In my earlier post Provisioning webparts through feature, we saw how can custom or out of the box...]]></description>
      <content:encoded><![CDATA[<h4><font size="3" face="Segoe UI"></font></h4>  <p><font size="3">In my earlier post </font><a href="https://blogs.msdn.com/b/voyage/archive/2015/02/24/provisioning-page-with-configured-web-part-from-visual-studio.aspx" target="_blank"><font size="3">Provisioning webparts through feature</font></a><font size="3">, we saw how can custom or out of the box web parts be provisioned on a page through visual studio feature.</font></p>  <p><font size="3">Note that sometimes using this approach you might stumble on this error “Cannot recognize the XML namespace”</font></p>  <p><font size="3">Notice that when ou download the configured web part you would see 2 kinds of namspaces. </font><a title="https://schemas.microsoft.com/WebPart/v" href="https://schemas.microsoft.com/WebPart/v2 and https://schemas.microsoft.com/WebPart/v3.&nbsp;&nbsp;"><font size="3">https://schemas.microsoft.com/WebPart/v2 and </font><a title="https://schemas.microsoft.com/WebPart/v" href="https://schemas.microsoft.com/WebPart/v"><font size="3">https://schemas.microsoft.com/WebPart/v</font></a><font size="3">3.&#160; </font></a><font size="3">In SharePoint you have two types of webparts, v2 and v3. Both have slightly different syntax</font></p>  <p><font size="3">The elements.xml file for v2 would look something like </font><font size="2">below</font></p>  <table cellspacing="0" cellpadding="2" width="400" border="1"><tbody>     <tr>       <td valign="top" width="400">         <p><font size="2">&#160;&#160;&#160; &lt;File Path=&quot;Pages\AccessDenied.aspx&quot; Url=&quot;AccessDenied.aspx&quot; Type=&quot;GhostableInLibrary&quot; ReplaceContent=&quot;TRUE&quot; &gt;             <br />&#160;&#160;&#160;&#160;&#160; &lt;AllUsersWebPart WebPartZoneID=&quot;MainZone&quot; ID=&quot;MeetingSearchWebPart&quot; WebPartOrder=&quot;1&quot;&gt;              <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;![CDATA[              <br />&#160;&#160;&#160;&#160; &lt;WebPart xmlns:xsd=&quot;</font><a href="https://www.w3.org/2001/XMLSchema&quot;"><font size="2">https://www.w3.org/2001/XMLSchema&quot;</font></a><font size="2"> xmlns:xsi=&quot;</font><a href="https://www.w3.org/2001/XMLSchema-instance&quot;"><font size="2">https://www.w3.org/2001/XMLSchema-instance&quot;</font></a><font size="2"> xmlns=&quot;</font><a href="https://schemas.microsoft.com/WebPart/v2&quot;"><font size="2">https://schemas.microsoft.com/WebPart/v2&quot;</font></a><font size="2">&gt;             <br />&#160; &lt;Title&gt;Access Denied&lt;/Title&gt;              <br />&#160; &lt;FrameType&gt;Default&lt;/FrameType&gt;              <br />&#160; &lt;Description&gt;Allows authors to enter rich text content.&lt;/Description&gt;              <br />&#160; &lt;IsIncluded&gt;true&lt;/IsIncluded&gt;              <br />&#160; &lt;ZoneID&gt;MainZone&lt;/ZoneID&gt;              <br />&#160; &lt;PartOrder&gt;0&lt;/PartOrder&gt;              <br />&#160; &lt;FrameState&gt;Normal&lt;/FrameState&gt;              <br />&#160; &lt;Height /&gt;              <br />&#160; &lt;Width /&gt;              <br />&#160; &lt;AllowRemove&gt;true&lt;/AllowRemove&gt;              <br />&#160; &lt;AllowZoneChange&gt;true&lt;/AllowZoneChange&gt;              <br />&#160; &lt;AllowMinimize&gt;true&lt;/AllowMinimize&gt;              <br />&#160; &lt;AllowConnect&gt;true&lt;/AllowConnect&gt;              <br />&#160; &lt;AllowEdit&gt;true&lt;/AllowEdit&gt;              <br />&#160; &lt;AllowHide&gt;true&lt;/AllowHide&gt;              <br />&#160; &lt;IsVisible&gt;true&lt;/IsVisible&gt;              <br />&#160; &lt;DetailLink /&gt;              <br />&#160; &lt;HelpLink /&gt;              <br />&#160; &lt;HelpMode&gt;Modeless&lt;/HelpMode&gt;              <br />&#160; &lt;Dir&gt;Default&lt;/Dir&gt;              <br />&#160; &lt;PartImageSmall /&gt;              <br />&#160; &lt;MissingAssembly&gt;Cannot import this Web Part.&lt;/MissingAssembly&gt;              <br />&#160; &lt;PartImageLarge&gt;/_layouts/15/images/mscontl.gif&lt;/PartImageLarge&gt;              <br />&#160; &lt;IsIncludedFilter /&gt;              <br />&#160; &lt;Assembly&gt;Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c&lt;/Assembly&gt;              <br />&#160; &lt;TypeName&gt;Microsoft.SharePoint.WebPartPages.ContentEditorWebPart&lt;/TypeName&gt;              <br />&#160; &lt;ContentLink xmlns=&quot;</font><a href="https://schemas.microsoft.com/WebPart/v2/ContentEditor&quot;"><font size="2">https://schemas.microsoft.com/WebPart/v2/ContentEditor&quot;</font></a><font size="2"> /&gt;             <br />&#160; &lt;Content xmlns=&quot;</font><a href="https://schemas.microsoft.com/WebPart/v2/ContentEditor&quot;"><font size="2">https://schemas.microsoft.com/WebPart/v2/ContentEditor&quot;</font></a><font size="2">&gt;&amp;lt;div&amp;gt;​Access Denied.&amp;#160; Please contact Administrator.&amp;lt;/div&amp;gt;&lt;/Content&gt;             <br />&#160; &lt;PartStorage xmlns=&quot;</font><a href="https://schemas.microsoft.com/WebPart/v2/ContentEditor&quot;"><font size="2">https://schemas.microsoft.com/WebPart/v2/ContentEditor&quot;</font></a><font size="2"> /&gt;             <br />&lt;/WebPart&gt;              <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ]]&gt;              <br />&#160;&#160;&#160;&#160;&#160; &lt;/AllUsersWebPart&gt;              <br />&#160;&#160;&#160; &lt;/File&gt;</font></p>       </td>     </tr>   </tbody></table>  <p><font size="3">and with v3:</font></p>  <table cellspacing="0" cellpadding="2" width="400" border="1"><tbody>     <tr>       <td valign="top" width="400">         <p><font size="2">&#160; &lt;File Path=&quot;Pages\MeetingSearch.aspx&quot; Url=&quot;MeetingSearch.aspx&quot;&#160; Type=&quot;GhostableInLibrary&quot; ReplaceContent=&quot;TRUE&quot; &gt;             <br />&#160;&#160;&#160;&#160;&#160; &lt;AllUsersWebPart WebPartZoneID=&quot;MainZone&quot; ID=&quot;MeetingSearchWebPart&quot; WebPartOrder=&quot;1&quot;&gt;              <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;![CDATA[&lt;webParts&gt;              <br />&#160; &lt;webPart xmlns=&quot;</font><a href="https://schemas.microsoft.com/WebPart/v3&quot;"><font size="2">https://schemas.microsoft.com/WebPart/v3&quot;</font></a><font size="2">&gt;             <br /> ..              <br />&#160; &lt;/webPart&gt;              <br />&lt;/webParts&gt;]]&gt;              <br />&#160;&#160;&#160;&#160;&#160; &lt;/AllUsersWebPart&gt;</font></p>       </td>     </tr>   </tbody></table>  <p><font size="3">v3 had extra &lt;webparts&gt; tag and v2 has extra attributes in WebPart tag.</font></p>]]></content:encoded>
    </item>
  </channel>
</rss>