Questions tagged [ssom]

SharePoint Server-Side Object Model

Windows SharePoint Services offers a highly structured server-side object model that makes it easy to access objects that represent the various aspects of a SharePoint Web site. From higher-level objects, you can drill down through the object hierarchy to obtain the object that contains the members you need to use in your code.

Reference: Server and Site Architecture: Object Model Overview

140 questions
3
votes
1 answer

Server Object Model to recursively loop through All Sites Collections and there sub-sites of Web-application

This is my First Post on SharePoint and I am new to SharePoint.I am listening lot of positive buzz on sharepoint.stackexchange , And i hope I too get the same support from you all folks. My requirement for one of my Web-application(Sales Department)…
Ax Learner
  • 31
  • 3
1
vote
3 answers

How to access Root Site Collection from other site collections?

we have a user control on the master page (this masterpage is applied to all sites in the web application). User control code: SPSite spsite = new SPSite(SPContext.Current.Web.Url); SPWeb spWeb = spsite.RootWeb; …
variable
  • 4,473
  • 13
  • 75
  • 139
1
vote
1 answer

Show Button only to Site Administrator

I have a asp.net button , And I would like to show only to sharepoint site administrator using Server Object Model. Can any one help me how can I do this.
MSA
  • 1,155
  • 3
  • 20
  • 48
0
votes
1 answer

Creating publishing pages using SharePoint Server Object Model in SP 2010

I am trying to create new pages in my publishing site(need to use a custom page layout) using SharePoint Server Object Model. I couldn't find much help on this topic from internet. Happy to have some references from you.
Biju Joseph - MCSD
  • 1,081
  • 8
  • 16
0
votes
1 answer

How to protect data of list item

As you know that Users with edit permission on List can edit List Item via CSOM or Rest API. It does not matter if the data is simple, but in case the data of list item is essential and stored with a format, it will absolutely not secure at all. It…
hoanvd1210
  • 137
  • 2
  • 11
0
votes
1 answer

How can we display the email-id and profile picture of loggedin user on a webpart?

In SharePoint 2013, using SSOM, we need to display the email-id and profile picture of loggedin user on a webpart? What is best practice? Do I need to use SPContext.Current.User or Do I use the userprofile properties?
variable
  • 4,473
  • 13
  • 75
  • 139