Simple way to authenticate the user against SharePoint online 365

// first of all we need to pass the user name and password to SharePoint online credentials constructor like below

//here again password we need to pass as a system.security.Securesetting

SharePointOnlinieCredentials onlineCredential = new SharePointOnlineCredential( _userName , mySecurePassword);

//we need to get the authentication cookie by passing the URL of the web service

string authCookie = onlineCred.GetAuthenticationCookie(_adminUrl);

// We need to Create a CookieContainer to authenticate against the web service

CookieContainer authContainer = new CookieContainer();

// now Put the authenticationCookie string in the container

authContainer.SetCookies(_adminUrl, _authCookie);

// we must Setting up the user profile web service

UserProfileWS.UserProfileService upService = new UserProfileWS.UserProfileService();

// assign the correct url to the web service

upService.Url = _adminUrl.AbsoluteUri;

// and finlally we need to Assign previously created auth container to web service

upService.CookieContainer = authContainer;

and that’s it we are good to go, happy coding

Posted in General Interest | Leave a comment

View and configure usage analytics reports in SharePoint Server 2013

In every new SharePoint version there is a considerable investment put into optimizing the way we aggregate and process usage information

The usage analytics reports show statistics of how visitors have interacted with the content on your website, for example which item has been viewed the most. The reports are broken down per usage event. This means that by default you’ll be able to see:

  • The number of views for an item.
  • The number of recommendations displayed per item.
  • The number of recommendations clicked per item.

SharePoint Server 2013 creates two usage analytics reports:

  • Most Popular Items – shows usage event statistics for all items in a library or list.
  • Popularity Trends – shows usage event statistics for an item, a site or a site collection.

The reports are automatically updated once every 24 hour when the usage analytics job is run.

In SharePoint 2013 three usage events are defined out of the box but we can add up to twelve custom events and assign them “Recommendation Weight” to rank items higher in Recommendations (Most Popular Items & Popularity Trends usage reports).

Usage Analytics Description – In simple words, Usage analytics analyzes user actions, or usage events, such as clicks or viewed items, on the SharePoint site.These Usage statistics are then combined with information about crawled content from the Search analyses, and processed. Statistics on the different usage events is added to the search index and sent to the Analytics reporting database.

Usage Events – Every time that a user views an item, the system issues ausage event.In SharePoint 2013 three usage events are defined out of the box . These default events are always registered and analyzed by SharePoint.

Following are the default usage events

  • Views – number of views for a single item, page, or document.
  • Recommendations Displayed – number of times a single item, page or document was displayed as a recommendation.
  • Recommendation Clicks – number of times a single item, page or document was clicked when it was displayed as a recommendation.

Custom Events – In addition to the default events, you can add up to twelve custom events. For example, you can add a custom event that tracks how often an item is accessed from a mobile platform or How often someone Liked a Conversation.

When you Create Custom events you can set them up to drive your Recommendations by assigning them “Recommendation Weight. By this I mean, if you setup an event to track a special set of pages like Product pages you can set the Recommendation Weight of each product page to be higher than any other page on the site.
For example – View Product Page Items = Recommendation Weight of 10
This will now Drive the Recommendation piece of Usage analytics and display Product pages at a higher rank in Recommendations.

For more details please check on MSDN blogs

http://blogs.technet.com/b/tothesharepoint/archive/2014/01/28/view-and-configure-usage-analytics-reports-in-sharepoint-server-2013.aspx

Posted in General Interest | Leave a comment

SharePoint 2013: User Profile Synchronization: Direct Active Directory Import

As we all know, many changes have been made in SharePoint Server Application Services. The Search Service Application and also the User Profile Synchronization Service has been improved in the new version of SharePoint 2013

The classic User Profile Synchronization Service Application (SharePoint 2010 and SharePoint 2013) still and always uses the FIM to get any data from Active Directory to fill our profiles.

But now, in SharePoint 2013, there is something called “Direct Active Directory Import”

The main novelty lies in the synchronization of properties of users in the corporate directory (Active Directory only) with the ability to import it directly.

Is it that concrete? The direct import can synchronize the SharePoint user profiles with Active Directory without using Forefront Identity Manager (FIM), as was the case in SharePoint 2010.

To explain it as simply as possible: “Direct Import from Active Directory which is designed to import the AD profile as quickly as possible.”

Yes, it is beneficial without using the FIM ! What Administrator has never had a problem with this service application? Problems with “Starting” User Profile Service Applications? .. It’s all over now

But there are also some limitations:

  • Mapping to system SharePoint properties is not supported.
  • Mapping two different AD attributes to the same SharePoint property is not supported

How does it work? The direct import works without starting the Synchronization Service in SharePoint (which is used for communication with the FIM configuration)! Actually, the Direct Import services are based on User Profiles.

Configure the type of import, configure the connection to the directory and then run the Syncronization … And that’s all.

According to this article, the following script snippet can be used to enable AD Import mode in SharePoint Server 2013: Only the OU setting is removed when you run the Remove-SPProfileSyncConnection cmdlet in SharePoint Server 2013

1 $UPSA=Get-SPServiceApplication -Name “<User Profile Service Application Name>”
2 $UPSA.NoILMUsed=$true

 

3 $UPSA.Update()

The User Profile Replication engine is an optional component of SharePoint Server 2010 and is part of the SharePoint Administration Toolkit. It replicates User Profiles and social data between User Profile service applications.

The User Profile Replication Engine ( UPRE ) which was a separate download tool comes as an out-of-the-box feature in SharePoint Server 2013.

It comes in very handy when you have a Development, Q&A and Production environment. Instead of building it all again from scratch, you can replicate all, or some, user profiles.

For more information please read and refere to:
http://www.harbar.net/archive/2012/07/23/sp13adi.aspx

Posted in General Interest | Leave a comment

Sign in as different user is missing from SharePoint 2013 site

Sign in as different user is missing from SharePoint 2013 site

Surprisingly SharePoint 2013 has removed the “Signin as different user”option from the welcome menu. But you can bring back the option by customizing the Welcome.ascx which is presented in the \15\TEMPLATE\CONTROLTEMPLATES\Welcome.ascx directory

This feature allows users who have more than one AD account to quickly login with a different account to SharePoint – but it does not guarantee that no artifacts from the previous user remain!

It was removed by Microsoft because actually it has  number of issues in SharePoint 2007 and 2010. Some of the most common issues are:

•  Caching problems

•  Documents opened in external applications are saved with an unexpected user account

•  Right after user logs in with a different account, the page content shows information from the previous account and the cookies are not properly cleared

• Session variables contain information from previous users as the cookies are not cleared

In other words, this feature was never meant as a security mechanism. Therefore, even though it’s possible to bring the menu option back, you should carefully consider whether doing so is really necessary. After all, it was removed for a reason.

If we want to bring the menu option back for all users, we can modify the Welcome.ascx file in the 15-hive on each server by following  If we just want to be able to log in with a different account without this menu option, we  can use below options.

• Start Windows Internet Explorer by using the Run as different user option, and then go to the SharePoint site

• Access the SharePoint site by using the following URL:

http://<site url>/_layouts/closeConnection.aspx?loginasanotheruser=true

• Add the following element before the existing “ID_RequestAccess” element:

<SharePoint:MenuItemTemplate runat=”server” ID=”ID_LoginAsDifferentUser”

Text=”<%$Resources:wss,personalactions_loginasdifferentuser%>”

Description=”<%$Resources:wss,personalactions_loginasdifferentuserdescription%>”                  MenuGroupId=”100″   Sequence=”100″   UseShortId=”true”   />

Save the file.

• Another way is to use a runas.exe shortcut to launch browser as another user. Less convenient, but more reliable in the long run.

• Or the last way is to create a JavaScript bookmarklet using your URL plus some client object model which can be checked here: http://corypeters.net/2012/10/sharepoint-2013-sign-in-as-another-user/

Posted in General Interest | Leave a comment

Missing Format Text, Insert, and Edit Source, etc Options on Sharepoint Some Pages

In SharePoint we don’t have edit page options [ribbon toolbar page edit formatting options] for all types of page for application page we cannot edit like site pages so The missing edit button might be due to many causes:

Can you verify that it’s not a permissions issue? Try navigating to the page in edit mode by appending to the url: your-site/Pages/YourPage.aspx?ControlMode=Edit&DisplayMode=Design

Or you can try this

your-site/Pages/YourPage.aspx? ?ToolPaneView=2

1. You can check  that on some pages the ribbon is hidden by default. You need to make it visible by clicking on “Show Ribbon” on the “Site Actions” drop-down menu.

2. You haven’t been doing Visual Upgrade (which actually replaces your master page with the v4.master)

3. If you have different master page and may be your master page is not 100% compatibile with SP2010, nor does it use the elements from v4.master (collaboration) or the example nightandday.master

To add the button in your page you could use the <SharePoint:PageStateActionButton id=”PageStateActionButton” runat=”server” Visible=”false” /> (if you’ve seen already that would generate the button on the left side of the ribbon)!

Posted in General Interest | Leave a comment

SharePoint 2013 list form cannot be customized with InfoPath

Here are the steps to configure and publish InfoPath to SharePoint 2013 and to use the Customize the list form from sharepoint ribbon toolbar in Infopath Client  the following items are required:

1.  SharePoint Enterprise 2013

2.  Microsoft InfoPath Designer 2013

3.  An account to access the SharePoint 2013 Site

4.  Activate the SharePoint Server Enterprise Site Collection feature activated

To activate the SharePoint Server Enterprise Site Collection feature, go to Site Setting –> under Site Collection Administration, select Site Collection Feature –> Active SharePoint Server Enterprise Site Collection features 

 

 

 

We need to make sure States Service is started.  Go to Central Administration –> click Application Management –> under Service Application section –> click Manage Service Application

picture 2

If we don’t see State Service in the list, go to Central Admin –> click Configuration Wizard –> click Launch the Farm Configuration Wizard–> click Start the Wizard –> Select State Service and click OK.

picture1

Posted in General Interest | Leave a comment

Skydrive Pro in SharePoint 2013

skydrive-pro-in-sharepoint-2013

SkyDrive Pro is a critical addition to SharePoint 2013. It lets you synchronize specific document libraries in SharePoint to your desktop and interact with them locally or online. As the use of tablets, smartphones and multiple computers fueled by the “bring your own device” movement, SkyDrive Pro promises to become an increasingly more important component of SharePoint and Office.

After SkyDrive Pro is set up, you can save documents directly to SkyDrive Pro from Office desktop applications, or synchronize them directly from SharePoint.

With SharePoint Online, each user will have 7GB of personal storage capacity allocated to them. For on-premises SharePoint 2013 implementations, the per-user storage capacity is a configurable parameter that administrators can manage.

SkyDrive Pro is included in most Office 2013 and Office 365 offerings. In SharePoint, if you choose SkyDrive in the top navigation bar, you are taken to your SkyDrive Pro folder, where all of your work-related documents reside. If you choose SYNC at the top-right below the navigation bar, the files in this folder are synchronized with your local computer. It’s that simple.

SkyDrive Pro is also not limited to documents in your personal SharePoint library. You can synchronize any document library for which you have appropriate permissions.

Give SkyDrive Pro a try, along with the many other features the new SharePoint has to offer. Try the new SharePoint Online in the Office 365 Preview or SharePoint Server Preview,

SkyDrive Pro doesn’t need to be installed on a PC unless you want to sync files locally; if you just want to use it as a cloud storage service, you use it in your browser or directly from Office.

Posted in General Interest | Leave a comment

How to Upgrade or migrate SharePoint 2010 Custom master page in SharePoint 2013

When editing a Master Page  in sharePoint 2013;

migrating custom master page into SharePoint 2013,

When editing a Master Page  in sharePoint 2013

When we try to modify a SharePoint 2013 Master Page, we need to edit the Master Page’s .html file only. Once saved, the associated master page file gets updated automatically.

So don’t attempt to modify the .master as it should be perfectly in sync with its html counterpart.

When editing a Layout Page – 

When we create a Custom Layout Page using Design Manager, two files – .aspx and .html gets created in the Master page gallery.

If we need to make any Changes to the Layout page, make sure you download the .html file of our layout page and make Changes to it. The .aspx page will get updated automatically.

Also, don’t forget to publish the .html or .aspx as a major version.

When we migrate the SharePoint 2010 site that have custom master page with custom control and webpart associated with this, and we want the SharePoint 2013 master page’s look and feel in this case we need to copy the SharePoint 2013 master page like we did the copy of seattle.master

And added our custom control’s reference and added our custom css references in it than only we can get the both our custom branding and SharePoint 2013 look and feel in our SharePoint 2010 migrated site in SP 2013.

 

Posted in General Interest | Comments Off on How to Upgrade or migrate SharePoint 2010 Custom master page in SharePoint 2013

New-Service-Applications-Introduced-in-SharePoint-2013

New Introduces Service Application in SharePoint 2013-Services application in SharePoint 2013

In SharePoint 2013 below three are main added Service application

  1. Work Management Service Application
  2. Machine Translation Service Application
  3. App Management Service Application

Here is a links to TechNet articles on how to install/configure. There is a great article which covers these services, and how they could be deployed on an ideal farm topology http://technet.microsoft.com/en-us/library/jj219591.aspx.

Work Management Service Application

One of the brilliant features in SharePoint 2013 personal site is providing the user with a single view of all the tasks assigned to him in all the SharePoint sites (projects, teams…etc.). The Work Management service application is responsible for collecting this information and not only from SharePoint sites, the Work Management service application can aggregate the tasks from Microsoft Exchange, Microsoft Project server and a custom provider model can be integrated.

http://technet.microsoft.com/en-us/library/jj554516.aspx

Machine Translation Service Application

The translation service provides an automated translation for SharePoint content through the integration with the available cloud-based translation services or it can create translation package to be delivered to a translation vendor and import back the translated content.

Machine Translation Service provides automatic machine translation of files and sites. When the Machine Translation Service application processes a translation request, it forwards the request to a cloud-hosted machine translation service, where the actual translation work is performed. http://msdn.microsoft.com/en-us/library/jj163145.aspx

App Management Service Application

Apps for SharePoint are self-contained pieces of functionality that extend the capabilities of a SharePoint website. The App management service is a new service application that enables you to purchase apps from Microsoft marketplace and to create your internal enterprise apps catalogue for hosting internally developed apps.

App management service allows the SharePoint Administrator to manage the Apps available in their farm, permissions and the licenses for these Apps.

App Management Service is part of the new App support within SharePoint 2013. These services, along with the Microsoft SharePoint Foundation Subscription Settings Service, have to be configured properly to support the new App model. http://technet.microsoft.com/en-us/library/fp161236.aspx#ConfigureAppServices

Posted in General Interest | Comments Off on New-Service-Applications-Introduced-in-SharePoint-2013

Missing some Service Application from SharePoint 2013 farm

Missing PowerPoint Automation Services in SharePoint 2013

SharePoint 2013 Service application are missing from SharePoint Farm

Missing PowerPoint Automation Services in SharePoint 2013

SharePoint 2013 Service application are missing from SharePoint Farm

When we go to SharePoint Central Administration->Application Management->Manage Service Applications->New menu dropdown – but Word Automation Services and other service applications services are there but we wont have the PowerPoint Autocmation Service in SharePoint 2013

 

When we use the farm configurator wizard to install all the services, powerpoint conversion service app and workflow service app are installed.  If we elect to configure everything ourself, the option to install these simply doesn’t exist in Central Admin and it happens for SP 2010 and SP 2013 as well

We can use the Farm Configuration Wizard to create them; just we need to check the check-box for the ones we want it to create.

Not all service applications have the property set that allows them to be displayed in the drop-down in the New area of the service application page.  Even 2010 had a few that did that

But still we can create  a new PowerPoint Automation Service application and proxy for SharePoint 2013 using powershell scripts

New-SPPowerPointConversionServiceApplication -Name “PowerPoint Automation Service” -ApplicationPool “SharePoint Web Services Default”

New-SPPowerPointConversionServiceApplicationProxy -Name “PowerPoint Automation Service” -ServiceApplication “PowerPoint Automation Service”

 

Posted in General Interest | Comments Off on Missing some Service Application from SharePoint 2013 farm