The client-side object model (CSOM) provides access to a subset of the SharePoint Foundation server object model, including core objects such as site collections, sites, lists, and list items and allows you to program against these from client side applications.

learn more… | top users | synonyms

2
votes
1answer
40 views

Is it possible to get “Active Directory” groups and members using client object model in sharepoint2013?

Is it possible to get "Active Directory" groups and members using client object model in sharepoint2013? If any one know please share your ideas. :)
1
vote
1answer
15 views

Javascript code to write JQGrid data to excelsheet?

I am working on JQGrid, I found one solution but it is writing whole JQGrid on excelsheet. But I only want JQGrid data on excelsheet. My JQGrid data consists of sharepoint list data. So can anybody ...
1
vote
1answer
50 views

check if a user exists in a sharepoint site

Is there anyway to check if a use exists in a office 365 site. I am adding meta data to items in a document library and I am using ensureuser but if the user is not there I don't want it to be added ...
1
vote
1answer
49 views

Set StorageQuota on existing site collection using CSOM and Powershell

Is there a way to set storage- and resource-quota on existing site collection using CSOM and Powershell? there is no MaximumStorageLevel property like at SiteCreationInformation using Powershell ...
1
vote
1answer
49 views

CSOM modify “new discussion” link when creating discussion board

I am creating a discussion board via CSOM and am wondering if there is a way to modify the "new discussion" text when creating the discussion board? Here is a snippet of how I am creating the list: ...
1
vote
1answer
49 views

Javascript Object Model SharePoint 2010 Item Level Permissions With Group

I have been trying for some time now to do something that should be simple using JAVASCRIPT CSOM in SharePoint 2010. I have working code that can break list item permission and add a user to an item ...
1
vote
1answer
14 views

Creating a Web Part to display Site Owner Group Members via CSOM

Does anyone have an example of displaying members of the Site Owners group on a SharePoint Page using CSOM? I'd like to have this show like a web part for each Site in SharePoint 2013.
1
vote
1answer
122 views

Getting the User Profile Picture URL by E-Mail via CSOM

I've seen many questions about how to achieve the User Profile Picture URL via the CSOM (Client-Side-Object-Model) API. However none of the solutions worked or they required the Account Name of the ...
1
vote
1answer
58 views

How to make cross site collection call using CSOM for on premise provider hosted app

I have requirement that Provider hosted app is in in http://localhost:1234/site1 for example and I need to get the list items from the list in http://localhost:1234/site2 Uri hostWeb = new ...
1
vote
1answer
18 views

Utility.SearchPrincipals returns users as SecurityGroups

When I call SearchPrincipals to search for a user name, I get back results with a PrincipalType of SecurityGroup instead of User. This is odd since the user should be a.... user. What are the reasons ...
2
votes
0answers
30 views

How do I get a list of followers for a content?

I need to know who is following a site a document or a tag. found how to get followers for the current user but not for a content.
2
votes
0answers
144 views

CSOM site provisioning error: The request uses too many resources

I continue to get an error (sometimes) when provisioning a web using CSOM. According to this MSDN article, this error is returned when the CSOM request exceeds 2MB. I watched the call in Fiddler and ...
1
vote
0answers
55 views

SharePoint 2013 CSOM where is Folder.MoveTo?

I have to implement a functionality of moving a document folder and was hoping to use Folder.MoveTo; But I don't see it in the Microsoft.SharePoint.Client and Microsoft.SharePoint.Client.Runtime for ...
1
vote
0answers
12 views

How to update item properties for an existing document found by search with CSOM?

You don't know which library it resides in, nor site, nor site collection. The only entry point is the search center URL or _api/Search endpoint. The problem is that when you retrieve the File it is ...
1
vote
0answers
30 views

Get spusercontext like _spPageContextInfo on page load

Is there any way to get the Current user details once the page loads in SharePoint 2013 like we get data for _spPageContextInfo I don't like to call below methods again and again var context = ...
1
vote
0answers
34 views

Create a new list from custom template with CSOM in SharePoint Online

I am trying to create a new list from an existing list template using CSOM in a SharePoint Online environment. Here is my code: using (ClientContext ctx = new ClientContext(WebURL)) { ...
1
vote
0answers
33 views

How to get the correspond listItem from the last major version of a file via CSOM

I am trying to get the last major version of a file in a sharepoint-list by using CSOM with the following Code: var web = clientContext.Web; var list = web.Lists.GetByTitle("MyList"); ...
1
vote
0answers
30 views

How to validate current user permissions for a given Term Store Group using CSOM

I can't seem to find a way to check for the current user permissions for a term store group or term set in Sharepoint Online. I know the REST interface does not support any kind of interaction with ...
1
vote
0answers
30 views

REST analog of SP.Utilities.Utility.formatDateTime

I would be very glad if someone help me, I am trying to find REST analog of SP.Utilities.Utility.formatDateTime function: var context = new SP.ClientContext.get_current(); var web = ...
1
vote
0answers
19 views

Linking List Web Parts Using CSOM

I'm looking at linking 2 list webparts on a page. I have found code that suggests it is possible on the server side object model here. ...
1
vote
0answers
51 views

SP2013 CSOM - 401 Unauthorized Exception from Server - What Feature/Service is the issue

I try to access a SharePoint 2013 Server via C# CSOM. The only thing I do is create the ClientContext, set the context.Credentials to my NetworkCredential, and ask for the Web Web web = context.Web;. ...
1
vote
0answers
41 views

Multi-factor authentication enabled Office 365 site

I am looking for any working examples of remote CSOM or SOAP OData calls against Office 365 with multi-factor authentication enabled. The available documentation is unclear on this scenario. I think ...
1
vote
0answers
49 views

Add user to owner group from High Trust App (user + app policy)

I have an High Trust Provider Hosted App, which is using App + User policy [User - ManageWeb/Owner and App - Full Control] Web oWebsite = clientContext.Web; ...
1
vote
0answers
56 views

Sharepoint Workaround for Mixed content (Insecure Script) Error

I am using a client side script in a SharePoint page. Since the script is hosted in other server and delivered through http, I am getting a mixed content error in javascript console. Mixed ...
0
votes
0answers
11 views

How to Check if a Sharepoint user is in a security group no matter if this is in a AD group CSOM Javacript

I have a Sharepoint hosted app and I need to check if the current user is in a sharepoint security group no matter if this is in a AD inside the group, the following code check if the user is in the ...
0
votes
0answers
17 views

Why user is able to connect to to site using CSOM when he is not authorized

I am using the following code to connect to a site using CSOM in C# application. ClientContext context = new ClientContext("http://myserver"); Web web = context.Web; context.Load(web); ...
0
votes
0answers
12 views

check if a sharepoint site and document library is correct

I have a script which adds files to a document library, but before I actually run this script I want to run another script to test if the site and document library are correct. I tried this : ...
0
votes
0answers
13 views

Adding file permissions from a file share to the same fileshare in office 365

I have this code that adds the permissions to folders from a fileshare to the same file share in office 365. How can I make it so it add the files permissions as well? Function MapPermissions{ ...
0
votes
0answers
42 views

Office 365 upload a file to a document library powershell

$Context = New-Object Microsoft.SharePoint.Client.ClientContext($SiteURL) $pass = ConvertTo-SecureString $credentials.Password -AsPlainText -Force $Creds = New-Object ...
0
votes
0answers
27 views

How to get “Active Directory” groups in Sharepoint 2013 using “Client Object Model”

I tried this code, but I get only the SharePoint Groups. var groupCollection; function getAllGroups() { var ctx = new SP.ClientContext(); groupCollection = ctx.get_web().get_siteGroups(); ...
0
votes
0answers
15 views

How to create Client Context from jquery AJAX Get?

I have an HTTP Post controller that I use in a SharePoint online provider hosted app. The controller code: [HttpPost] public JsonResult FinaliseQuote(string quote) { using ...
0
votes
0answers
21 views

Cannot create site template from SharePoint 2013 online using C#

I am facing one strange issue in creating sub site using CSOM. Following steps I have performed. I have created new site collection (Publishing) in sharepoint online Created sub site of type ...
0
votes
0answers
11 views

CSOM timeout when attaching file to list item

I am attaching files to list items and encounter the following error message: The operation has timed out. Looking at the files that throw this exception, I see that they range in size from ~7MB to ...
0
votes
0answers
14 views

Shared files not being displayed in “Shared with me” using CSOM

I'm using the following code to share items within OneDrive. private static void Main(string[] args) { using (var ctx = new ...
0
votes
0answers
17 views

Get checked out items that don't have checkedin version (yet)

In a document library, I need to get all the files/items, even the items that don't have yet checked-in versions. Is this possible and how? I'm using CSOM (C#).
0
votes
0answers
20 views

Querying folder's content in OneDrive for Business using CSOM works extremely slow

I try to get a content of specific OneDrive folder using Sharepoint CSOM 2013. The version of Microsoft.Sharepoint.Client.dll assembly is 16.1.3912.1204. Here is my code. I've tried two working ...
0
votes
0answers
42 views

How to create/add discussion board to site using CSOM

Is it possible to add or create a discussion board for a site? Many of the resources I find describe how to add a post to an already existing discussion board, but no mention of how to create one. ...
0
votes
0answers
43 views

WebProvisioned Remote Event Receiver never fires and cannot delete the Remote Event Receiver at App Uninstall

I am trying to install a Remote WebProvisioned event receiver from the App Installed event and remove it at App Uninstall. AppInstall fires multiple times so I am detecting whether the event receiver ...
0
votes
0answers
34 views

Create and upload a excel file in SharePoint Online using CSOM

I am new to SharePoint online CSOM. I want to create a excel file and the content of the excel is from SharePoint list. I am using CAML query to get list item, I need to write those items to a excel ...
0
votes
0answers
26 views

Adding permissions to folders in doclib powershell csom o365

I have a document library in o365 where I want to add permissions to the folders. The folders I have are from an array and read like \test \test\migration etc. How can I find the correct folder in the ...
0
votes
0answers
23 views

Getting access denied errors while setting properties of web that was just created through CSOM

In a provider hosted app that is deployed to SharePoint Online, I created a new web, which works fine: newWeb = hostWeb.Webs.Add(information); ctx.ExecuteQuery(); ctx.Load(newWeb); ...
0
votes
0answers
39 views

Get lync/skype for business status for SPUser object in list

I am writing a core solution for SharePoint 2013 und use CSOM. I have got a SharePoint list which contains a user element. In the list the lync/skype for business status of the user is displayed ...
0
votes
0answers
21 views

One time authenticating a user for both JSOM and CSOM calls

I have a SharePoint hosted app that requests the user's login credentials and sends them to a WCF service that at some point creates a context in CSOM using these credentials to issue some requests ...
0
votes
0answers
82 views

Check permissions for user - AD group and javascript

We are building a single page application that resides in SharePoint and now we would like to show some components based on the current users permission on a list item. The problem is that ...
0
votes
0answers
20 views

Repeater Control in SharePoint List :CSOM Development

We are customizing OOB SharePoint List forms. Wanted to check how do we achieve Repeater control Multiple People Picker Multiple Checkboxes Multiple Dropdowns All of these controls need to be ...
0
votes
0answers
27 views

Could not find file 'c:\windows\system32\inetsrv\new Client ID.txt

I am using CSOM to upload a file to Share Point list.It says "Server Error in '/App' Application.Could not find file 'c:\windows\system32\inetsrv\new Client ID.txt' " Here is my code, UserCV ...
0
votes
0answers
56 views

Find web part type using JavaScript Object Model in SPOnline

I need to go through all web parts of a page (e.g. default Display page of a list) and set the JSLink property on a particular web part. I can enumerate the web parts on a page and set the property on ...
0
votes
0answers
82 views

change editor and author of a document via powershell CSOM

I am wanting to change the editor and author of a document in a document library in O365 using CSOM powershell. I have managed to change the dates like this : $Upload = ...
0
votes
0answers
36 views

Move files from fileshare to document library but keeping modifed date, modified by CSOM Powershell

I am wanting to do a migration where I move files from a fileshare to a document library in office 365. This needs to be done in CSOM powershell and needs to keep all of the modified dates, modified ...
0
votes
0answers
27 views

Allow App-Only Policies in an On-Premises SharePoint 2013

I need to execute some CSOM (Client Side Object Model) Request with elevated privileges using the App-Only-Policy in a SharePoint 2013 Provider-Hosted App. However the when I try to execute a Query ...