Tuesday, February 17, 2015

User information list manuall sync

User information list manuall sync

Question :

I removed one of my users department from AD and did a full sync from centeral administration.but still my user's department in user information list shows old value.please help me how can I manually sync this list with AD?

Answer :

The UPA Sync connection synchronizes with the User Profile database, not the UIL(User informations list).
To synchronize with the UIL, there are two timer jobs:
User Profile Service Application - User Profile to SharePoint Full Synchronization
User Profile Service Application - User Profile to SharePoint Quick Synchronization
Those synchronize the information from the UPA Profile database to the UIL of each Content Database.

Hope this help,
Oumaima

Thursday, February 12, 2015

Hide the SharePoint Online Ribbon for Anonymous Users

Hide the SharePoint Online Ribbon for Anonymous Users
Essentially all public facing SharePoint sites, including those hosted on SharePoint Online or on-prem SharePoint 2013, require a method to hide the suite bar / ribbon for anonymous users. The SharePoint Online oslo master page does an OK job of this while the seattle master page does not even attempt to hide the ribbon. I have been asked quite often how I prefer to hide the ribbon for anonymous users.
The primary method everyone jumps to is the control,<SharePoint:SPSecurityTrimmedControl /> found in theMicrosoft.SharePoint.WebControls namespace, typically registered to the tagSharePoint. As an example.
Show only for Anonymous Users:
1
2
<SharePoint:SPSecurityTrimmedControl runat="server" AuthenticationRestrictions="AnonymousUsersOnly" EmitDiv="true">
</SharePoint:SPSecurityTrimmedControl>
Show only for Authenticated Users:
1
2
<SharePoint:SPSecurityTrimmedControl runat="server" AuthenticationRestrictions="AuthenticatedUsersOnly" EmitDiv="true">
</SharePoint:SPSecurityTrimmedControl>
The often quoted, yet incorrect, solution for hiding the SharePoint ribbon for anonymous users is to encapsulate the entire suite bar / ribbon with theSPSecurityTrimmedControl with AuthenticationRestrictions set toAuthenticationRestrictions. The problem with this solution is that the out-of-the-box SharePoint JavaScript that is used to determine the height of the s4-workspace requires a div with an id, s4-ribbonrow.
My preferred SharePoint Online and SharePoint 2013 solution for hiding the suite bar / ribbon for anonymous users uses the above theory while also addressing the #s4-ribbonRow requirement. I also find is much cleaner than what is found in the oslo master page.
Simply replace the suite bar / ribbon found in your master page with the following:
1
2
3
4
5
6
7
8
9
10
11
12
13
<div id="ms-designer-ribbon">
   <SharePoint:SPSecurityTrimmedControl runat="server" AuthenticationRestrictions="AnonymousUsersOnly" EmitDiv="true">
      <div id="s4-ribbonrow" style="visibility:hidden;display:none"></div>
   </SharePoint:SPSecurityTrimmedControl>
   <SharePoint:SPSecurityTrimmedControl runat="server" AuthenticationRestrictions="AuthenticatedUsersOnly" EmitDiv="true">
      <div id="suiteBar" class="ms-dialogHidden noindex">
         <!--#suiteBarLeft and #suiteBarRight-->
      </div>
      <div id="s4-ribbonrow">
         <!--ootb ribbon controls-->
      </div>
   </SharePoint:SPSecurityTrimmedControl>
</div>
Highlights
Notice that I wrap the entire suite bar / ribbon in my own wrapper. This ID came from Design Manager, but if you have a wrapper around the suite bar / ribbon it will be easier to target specific elements later.
Hope this help.
Oumaima,

Sharepoint Designer 2013, XSLT List View Options ribbon option is not showing

Sharepoint Designer 2013, XSLT List View Options ribbon option is not showing I have an ordinary Wiki Page, also tried making an Article...