Search This Blog

Sunday, May 31, 2015

Security Groups in SharePoint/User permissions and permission levels

Security Groups in SharePoint
We can manage users of SharePoint sites more efficiently if you assign permission levels to groups instead of to individual users. A SharePoint group is collection of individual users and also includes the Active Directory Service groups.
For Example :
Just assume that a organization have a Active Directory  and SharePoint Server.
  1. Active Directory is a server and it maintain users and groups of an organization.
  2. Active Directory commonly uses the following groups.
    1. Distribution Group: This groups used only for e-mail distribution and the security is not enabled on it.
    2. Security Group: A Group that can be listed in discretionary access control list (DACLs). It can also used as an e-mail entity.
  3. Suppose I just created IT-Development Security group in my active directory and added the IT development team.

Now we have IT-Development group in the AD so we can give permission to all the IT Team on any SharePoint Site by simply add the IT-Development group to SharePoint Site Members group.

Adding Security groups to SharePoint Group provides centralized management of Groups and Security.  Once you add the security group ( IT-Development) to a SharePoint Group, we don’t have to manage security group members in the SharePoint Group. If we delete a member from the IT-Development security group, then user will automatically removed from the SharePoint Group. I can say it’s easiest way to giving the permission to users to SharePoint sites rather than individual IT-Development users.

User permissions and permission levels in SharePoint 2013

User permissions and permission levels in SharePoint 2013

Permission levels in SharePoint

Limited Access

They can view Application Pages, Browse User Information, Use Remote Interfaces, and Use Client Integration Features etc.

Reader

Limited Access permissions plus: View Items, Open Items, View Versions, Create Alerts, Use Self-Service Site Creation, and View Pages.

Contributor

Read permissions plus: Add Items, Edit Items, Delete Items, Delete Versions, Browse Directories, Edit Personal User Information, Manage Personal Views, Add/Remove Personal Web Parts, Update Personal Web Parts.

Design

Contribute permissions plus: Manage Lists, Override Check Out, Approve Items, Add and Customize Pages, Apply Themes and Borders, Apply Style Sheets.

Administrator

Has full control of the Web site.

Full Control

All permissions

Creating Custom Permissions Groups 

  • Site Actions -> Site Settings -> Site Permissions (Users and Permissions)
  • Click on Permission Levels (In Ribbon)
  • Add a Permission Level (Menu)
  • Name = Add or Edit Permission, Check Add Items and Edit Items checkboxes -> Create

To Create a Custom Permission level

  • Site Actions -> Site Settings -> Site Permissions (Users and Permissions)
  • Select Grant Permissions (In Ribbon)
  • Enter the User/Group name. Select Grant user permission directly and check the required permission level.

To Create a Custom Permissions for Lists / Libraries or ListItems

  • By default, the permission given to the site automatically applies to the Lists as well. We can override these settings and give permissions
  • Open List -> Settings -> List Settings -> Permissions for this list


SharePoint Creating Sites

SharePoint Creating Sites
A Web site is a group of related Web pages. Most Web sites have a home page as their starting point. The home page is interconnected with other pages by using hyperlinks. You can use top-level sites and subsites to divide site content into distinct, separately manageable sites. Top-level Web sites can have multiple subsites, and subsites themselves can have multiple subsites. The entire structure of a top-level Web site and all of its subsites is called a Web site collection.
This hierarchy enables users to have a main working site for the entire team, plus individual working sites or shared sites for side projects. Top-level Web sites and subsites allow different levels of control over the features and settings for sites. The administrator of the Web site controls the ability to create, access, and contribute content to a Web site.

Create a site in sharepoint

Step 1

Click on Settings Button and then  select Site Contents link to go to the Site Contents page.
Here if scrolle down you will find New Subsite link under SubSites lable. Click on New Subsites to create sub site.

Step 2

Specify the Title, Description, and   Url Name, etc. Choose the blog Template for this subsite. Also, choose other options like permissions and navigations as you desire. Click on Create button.

Now This is your Sub site, here you can  find your sitcollection name and subsite name like bellow

SharePoint Site Templates

SharePoint Site Templates
SharePoint templates will help users to create the site based predefined features, styles etc. You can see that there are four sections under select a template Collaboration, Enterprise, Publishing and custom. The default site templates, such as Team Site, Project Site, and Communities Site. SharePoint site templates are prebuilt definitions designed around a particular business need. You can use these templates as they are to create your own SharePoint site, and then customize the site as much as you want.you can also create your own site template based on a site you’ve created and customized. A custom site template is a way to package site features and customizations that you can add to a solutions gallery.

Types of   Templates

  • Team site
  • Blog
  • Development Site
  • Project Site
  • Community site
  • Publishing Site
  • eDiscovery  center
  • Document center
  • Business intelligence center
  • Enterprice Search center ..Etc
Go to -> Central Admin -> Application Management -> Create Site collections under site collection section
You can see that there are four sections under select a template Collaboration, Enterprise, Publishing and custom. In the below figure the select experience version is 2013.

Team Site

A SharePoint site is a Web site that provides a central storage and collaboration space for documents, information, and ideas. A SharePoint site is a tool for collaboration, just like a telephone is a tool for communication, or a meeting is a tool for decision making. A SharePoint site helps groups of people share information and work together

Developer Site

Developer site templates are used to develop, test and publish apps for office and SharePoint.

Project Site

A Site for managing and collaborating on a project. This site template brings all Status, communication, and artifacts relevant to the project into one place.

Community Site

Community site template for Sharing the information across the organization. Community members discuss topics of common interest. Members can browse and discover relevant content by exploring categories, sorting discussions by popularity or by viewing only posts that have a good reply. Members gain reputation points by participating in the community, such as starting discussions and replying to them, liking posts and specifying best replies.

eDiscovery Center

A site to manage the preservation, search, and export of content for legal matters and investigations.

Publishing

A Site for managing product catalog data which can be published in an Internet-facing site through search. The product catalog can be configured to support product variants and multilingual product properties. The site includes admin pages for managing faceted navigation for products.


SharePoint 2013 /Creation of Web Application/Creation of site Collection


SharePoint 2013 Introduction

SharePoint is an extensible web based platform which contains various products and technologies aimed at development of corporate portals. These products and technologies are referred to as SharePoint Products and Technologies.Microsoft SharePoint is a enterprise collaboration and content management portal.which enable users connect to each other and share the information across an organization
It allows individuals in an organization to easily create and manage their own collaborative Websites
  • Simplifies how people find and share information across boundaries and enabling better informed decisions
  • Seamlessly integrates with Windows and MS Office Does not refer to a specific product or technology

Advantages of SharePoint Products and Technologies (High level features)

  • Rich UI Easy site editing and branding Ribbon Interface.
  • Better Site Provisioning Quick development No DBA required
  • Better document Management Better Versioning Document Libraries
  • Automated Email and SMS Alerts
  • Easy Customization options: “My Site” (using WebParts)
  • Built In Indexing & Search Engine
  • Integration with Active Directory
  • Integration of MS-Office Products
  • Reports in PDF, Word and other formats
  • Document Workflow (Approval)
  • Document View within browser
  • Permissions
  • Collaboration
  • Communication
  • Task Manager

SharePoint Creating web application

SharePoint Creating web application

A SharePoint 2013 web application is composed of an Internet Information Services (IIS) web site that acts as a logical unit for the site collections that you create. Before you can create a site collection, we must first create a Web application. Each web application is represented by a different IIS web site with a unique or shared application pool. we can assign each web application a unique domain name.
When you create a new web application, you also create a new content database and define the authentication method used to connect to the database. In addition, you define an authentication method to be used by the IIS Web site in SharePoint 2013.

SharePoint hierarchy 

  • Server Farm
  • Web Application
  • Site Collections
  • Sites
  • Lists, Library..etc

Create Web application in SharePoint 

Step 1

Let’s start by navigation to the SharePoint Central Administration.here we will find under Application Management, Click on Mange web application link Button
This page you can see which are already running web applications,now we have to create new web application then Click on New Button.

Step 2

  • A pop-up window open for creating web application will appear Specify a port number.
  • By default Allow Anonymous  selected No, if you your web application Anonymous site click yes.
  • Select the authentication mode. By default, it will be Claims based authentication.
  • We can change the content database name for easily identifying the database for your web application (eg: WSS_CONTENT_PortNumber).
  • Click on OK button to start creating the web application
After Click ok Button It will take few Seconds to create web application
Once the web application is created, the following pop-up will come and  here will be provide  to create a site Collection

Saturday, May 30, 2015

SharePoint 2013 Tutorial

SharePoint 2013 Tutorial

Microsoft SharePoint Server is a Web application platform developed by Microsoft.First launched in 2001.Microsoft SharePoint is a enterprice collabration and content management portal.which enable users connect to each other and share the information across an organization.Allows individuals in an organization to easily create and manage their own collaborative Web sites.Simplifies how people find and share information across boundaries, and enabling better informed decisions.Seamlessly integrates with Windows and MS Office.
offer a fully functional, out-of-the box software that can be customized to meet the specific needs of your business without the added costs of architects and consultants.One of the benefits of an out-of-the box solution is that re-designing is easy and can be done on a continuous basis, from the front-end of the software, with no IT experience required.

Six Pillars of SharePoint

  • Sites
  • Communities
  • Content
  • Search
  • Insights
  • Composites

Sites

Building and Managing Internal and External Websites.It provides a full set of tools that people can use to create any kind of site, plus a single infrastructure that simplifies site management.From a team site for colleagues, to an extranet site for partners, to an Internet site for customers, people can share and publish information using one familiar system.

Communities

Creating a Social Collaboration Environment.Social capabilities like Facebook and Twitter are becoming normal for many of us. Now all this social media stuff is moving into the workplace. It all boils down to providing a modern approach to working together, collaborating and sharing knowledge.So these capabilities need to be a component of every piece of software we use.

Content

Managing Your Documents, Information and Records.As part of Content functionality in SharePoint, you have direct integration with your MS Office environment, so you can work on your documents in a familiar environment.

Search

The Google for Your Organization’s Private Info.Search for information and people, including particular expertise.Index content and data stored outside of your SharePoint database
Refine search results based on taxonomy and metadata (how content is organized and classified).The addition of FAST Search brings enhancements,View thumbnails and previews of content within the result set.Refine results based on user profile or audience.The ability to refine search results with filters like Site, Author, Result Type and more.

Insights

Digging for Business Intelligence.A key goal in any business is staying ahead of the competition. Increasingly, the class of software called Business Intelligence plays an important role here. Business intelligence software is all about helping you make decisions and find problems.

Composites

Integrating Your Business Systems.Another big improvement for SharePoint relates to its ability talk to — pushing and pulling data to/ from other business systems. Instead of having to work in multiple systems, you can create composite applications in sharepoint. Data integrations are key for management dashboards and project management, but also for employees who may not need full access to the business application. SharePoint can both view and update external data via its Business Connectivity Services (BCS).

Version History of SharePoint

Role of SharePoint Server in a LAN Network.

Components of SharePoint

SharePoint Foundation Server

Creating team sites and collaborating on content within lists and libraries, or features such as blogs, wikis, RSS feeds, alerts, and easy browser-based customizations.
It provides developers with a great platform to build from. Out of the box, it handles storage, web presentation, authorization, user management, and has an interface into the Windows Workfow Foundation and because all of this functionality is easily accessible through the object model, APIs, and web services, it can greatly accelerate a developer’s job. Rather than build all of those infrastructure pieces for every web-based product, developers can leverage SharePoint Foundation and concentrate on just building the solution.

SharePoint Server

It extends Foundation server which is automatically installed with SharePoint ServerIts available in two editions: Standard Edition & Enterprise Edition
  • Standard introduces core functionality like social, search, and advanced web and enterprise content management.
  • Enterprise focuses primarily on adding functionality through new service applications, introducing business intelligence, line of business integration, reporting, and some Office client services such as Visio

Search Server

Foundation server cannot pull search results from multiple site collection and cannot add external content sources like file share or Exchange public folders

Fast Search Sever

Visual search and best bets.Extreme scale, with a billion documents possible.Enhanced multiple language capabilities.Better handling of unstructured data through metadata extraction
Better handling of structured data such as numbers, dates, etc.

SharePoint Online (SharePoint Cloud)

Another push for SharePoint from Microsoft will be SharePoint in the cloud, hosted by Microsoft. If you are looking to deploy SharePoint using this model, the entire server infrastructure is hosted and maintained for you. This model removes the administrative overhead of SharePoint and lets the business focus just on using the power that is SharePoint.

Application Servers

Query Server: its responsible for responding to user search requests
Index Server: Also referred as Crawl Server.
Excel Service: It’s about supporting excel service in client browser.
Usage and Health Data Collection: It enables the collection of all the diagnostic and usage data from your entire SharePoint farm in one database.

Developers View of SharePoint


Thursday, May 28, 2015

What is IIS - Internet Information Server/What is Virtual Directory

Internet Information Server

Internet Information Server (IIS) is one of the most popular web servers from Microsoft that is used to host and provide Internet-based services to ASP.NET and ASP Web applications. A web server is responsible for providing a response to requests that come from users. When a request comes from client to server IIS takes that request from users and process it and send response back to users.
Internet Information Server (IIS) has it's own ASP.NET Process Engine to handle the ASP.NET request. The way you configure an ASP.NET application depends on what version of IIS the application is running on.
iis
Internet Information Server (IIS) includes a set of programs for building and administering Web applications, search engines, and support for writing Web-based applications that access databases such as SQL Server. With IIS, you can make your computer to work as a Web server and provides the functionality to develop and deploy ASP.NET Web applications on the server. You can also set security for a particular Website for specific Users and Computer in order to protect it from unauthorized access.

IIS helps organizations to increase Web sites and application availability while lowering system administration and cost of deployment. IIS 7.5 supports HTTP, HTTPS, FTP, FTPS, SMTP and NNTP.

What is Virtual Directory

Virtual Directory
A virtual directory is a directory name that you specify in IIS and map to physical directory on a local server's hard drive or a directory on another server (remote server). You can use Internet Information Services Manager to create a virtual directory for an ASP.NET Web application that is hosted in IIS.
The virtual directory name becomes part of the application's URL. It is a friendly name, or alias because an alias is usually shorter than the real path of the physical directory and it is more convenient for users to type. A virtual directory receives queries and directs them to the appropriate backend identity repositories. It integrates identity data from multiple heterogeneous data stores and presents it as though it were coming from one source.
How to create a virtual directory by using IIS Manager
virtual-directory
1. In IIS Manager, expand the local computer and the Web site to which you want to add a virtual directory.
2. Right-click the site or folder in which you want to create the virtual directory, click New, and then click Virtual Directory.
3. In the Add Virtual Directory dialog box, at a minimum enter information in the Alias and Physical path and then click OK.
By default, Internet Information Server uses configuration from Web.config files in the physical directory to which the virtual directory is mapped, as well as in any child directories in that physical directory

Wednesday, May 27, 2015

Multiple (AND /OR) CAML Querry



1-<Where>
  <And>
    <Or>
      <Contains>
        <FieldRef Name="Title" />
        <Value Type="Text">Sharepoint</Value>
      </Contains>
      <Contains>
        <FieldRef Name="Description" />
        <Value Type="Text">Sharepoint</Value>
      </Contains>
    </Or>
    <Eq>
      <FieldRef Name="Status" />
      <Value Type="Text">Approved</Value>
    </Eq>
  </And>
</<Where>



2- <Or>
    <Or>
      <Or>
        <Or>
          <Or>
            <Or>
              <Or>
                <Or>
                  <Eq>
                    <FieldRef Name="Count" />
                    <Value Type="Integer">0</Value>
                  </Eq>
                  <Eq>
                    <FieldRef Name="Count" />
                    <Value Type="Integer">1</Value>
                  </Eq>
                </Or>
                <Eq>
                  <FieldRef Name="Count" />
                  <Value Type="Integer">2</Value>
                </Eq>
              </Or>
              <Eq>
                <FieldRef Name="Count" />
                <Value Type="Integer">3</Value>
              </Eq>
            </Or>
            <Eq>
              <FieldRef Name="Count" />
              <Value Type="Integer">4</Value>
            </Eq>
          </Or>
          <Eq>
            <FieldRef Name="Count" />
            <Value Type="Integer">5</Value>
          </Eq>
        </Or>
        <Eq>
          <FieldRef Name="Count" />
          <Value Type="Integer">6</Value>
        </Eq>
      </Or>
      <Eq>
        <FieldRef Name="Count" />
        <Value Type="Integer">7</Value>
      </Eq>
    </Or>
    <Eq>
      <FieldRef Name="Count" />
      <Value Type="Integer">8</Value>
    </Eq>
  </Or>
</Where>Where>

Saturday, May 23, 2015

Create/Update/Delete list items using Client Object Model in SharePoint 2010

In this article we are going to see how to create, update and delete list items using Client Object Model in SharePoint 2010.



Create List Item:

Add the references Microsoft.SharePoint.dll and Microsoft.SharePoint.Client.dll.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Client;
namespace CreateListItem
{
    class Program
    {
        static void Main(string[] args)
        {
            string siteUrl = "http://servername:12345/";
            ClientContext clientContext = new ClientContext(siteUrl);
            List oList = clientContext.Web.Lists.GetByTitle("");
            ListItemCreationInformation listCreationInformation = new ListItemCreationInformation();
            ListItem oListItem = oList.AddItem(listCreationInformation);
            oListItem["Title"] = "Hello World";
            oListItem.Update();
            clientContext.ExecuteQuery();
        }
    }
}


Update List Item:

Add the references Microsoft.SharePoint.dll and Microsoft.SharePoint.Client.dll.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Client;

namespace UpdateListItem
{
    class Program
    {
        static void Main(string[] args)
        {
            string siteUrl = "http://servername:12345/";
            ClientContext clientContext = new ClientContext(siteUrl);
            List oList = clientContext.Web.Lists.GetByTitle("");
            ListItem oListItem = oList.GetItemById(5);
            oListItem["Title"] = "Hello World Updated!!!";
            oListItem.Update();
            clientContext.ExecuteQuery();
        }
    }
}


Delete List Item:

Add the references Microsoft.SharePoint.dll and Microsoft.SharePoint.Client.dll.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Client;

namespace UpdateListItem
{
    class Program
    {
        static void Main(string[] args)
        {
            string siteUrl = "http://servername:12345/";
            ClientContext clientContext = new ClientContext(siteUrl);
            List oList = clientContext.Web.Lists.GetByTitle("");
            ListItem oListItem = oList.GetItemById();         
            oListItem.DeleteObject();
            clientContext.ExecuteQuery();
        }
    }
}