Tag Info

New answers tagged

0

this worked for me. var clientctx = SP.ClientContext.get_current(); var list = ctx.get_web().get_lists().getByTitle('Calendar'); var item = list.getItemById(121); item.resetRoleInheritance(); ctx.executeQueryAsync(function(){alert('success')},function(s,a){alert(a.get_message())});


0

This was a simple compatibility issue. I went to Tools, Compatibility View Settings, and Selected Add to add the website. That resolved the error and allowed me to add a group.


0

Your right breakRoleInheritance will break everything. Test it out in front end UI. breakRoleInheritance : List will not inherit anything from sitecollection. You may need to add the remaining Groups in powershell again.


0

Field level permissions are not possible in SharePoint either by OOTB and you need to build a custom solution for that. Pls refer the below references. Link-1 Link-2


0

In order for that to work it needs to be a Root Site Collection. It does not work on Subsites.


0

The best suited way of addressing your scenario will be as follows: Change the permissions of "everyone" to read only to the site so every one can be able to view the content. Create a new AD security group with all the required 300 users (one time activity at AD level) with out that shared login account. Now add the new AD security group to the ...


0

I would create folders and set the appropriate permissions on the folder level, then all the files in the folder inherit those permissions. You could do it in an even receiver on itemadded to break permission inheritance, but that would get messy if you have a lot of files. I'd stick to folder based permissions where each customer has their own folder. You ...


0

A very reasonable and practical request! From my knowledge SharePoint doesn't provide a direct way to accomplish this task, but you may be able to get around it by using a content query or list filter to display only those results that the user should see. Another option would be to create a workflow when the item is created to grant item level permissions ...


0

Of course you can. You can use CSOM. Connect to web using credentials, get list that you want. Get all items or specific field using caml query query.ViewXml = "<View/>"; items=SourceList.GetItems(query); clientContext1.Load(items); clientContext1.ExecuteQuery(); Each item like SecurableObject has it's permissions list. item.RoleAssignments; - it ...


1

Use chrome and create multiple users In settings you can shift to a different user using top right menu every user login will be opened in a seperate window. Each window will have its own cache, saved passwords, bookmarks etc.


0

Remember the old "log in as different user" from SP2010? Well it's still there - just browse to <yourSharePoint>/_layouts/15/closeConnection.aspx?loginasanotheruser=true


1

Personally, I use 3 browsers for testing with different users, this is the best way I think, you don't need to install a small VM, that's too dear and long to do it. Chrome, Firefox, Safari, Opera and Maxthon is your friends. Easy to install and test, just enjoy it.


1

There's a bunch of options: You can easily open up to 6 browser sessions: IE, IE InPrivate, Chrome, Chome Incognito, Firefox, Firefox Private browsing (+ Opera or else if you want!). They all have their own session/authentication information, and you can log in with 6 different users. At the same time, if you're developping in SharePoint, you can test ...


2

RIGHT click on IE hold SHIFT and then RIGHT click again on IE LEFT click "Run as different user" login Repeat 1.- 4. for other users :)


0

The assumptions above were correct. The issue actually turned out to be network related (the workflow needed the FQDN of the target host for the export). In my case, I was able to write the file to the network share (once the address for the remote host was corrected) without using SPSecurity.RunWithElevatedPrivledges or any other special changes.


1

No, not without breaking inheritance. If you don't break inheritance, then you can't assign permissions to your document without also assigning permissions for whatever parent is being inherited from. If however you're able to break inheritance, then you can just use the SharePoint 'share' option (SP2013, anyway) which will break inheritance, copy all the ...


0

Try the below code. You should first get the Role Assignment if the group from the role assignment collection of the web.Then use importRoleDefinitionBindings method of the roleassignment object to add the Read role definition binding. This will remove the existing bindings and add the new binding. var clientContext; var currentWeb; var ...


0

I confronted the same error. I figured out that the list had a look up column and the user didn't have access to the lookup list. Allowing the user to read the lookup list solved the problem. P.S. I wannt to help but don't have enough points to comments, that's why as an answer.


0

The People picker is configured via STSADM.exe. You can set it up with a trust to an authentication provider. If you have multiple authentication providers (Forms Based Auth, Windows Auth, ADFS etc) and the people picker has been configured for all of them, you may find multiple accounts with the same names... Please have a look at the following article ...


0

You can also give folder level permissionin the same way you gave for Library level. Click ... next to folder for which you want to give unique permission Share With -> Stop inheriting permission. Then remove and add permission for giving permission to that perticular folder. 2 []3 []5


2

Elevating privileges in JavaScript Object Model is not supported in SharePoint 2010 as well as SharePoint 2013. However if you need to work with a specific object such as a list or a web then we can use the SharePoint Add-In model (App model) to create an add-in with an App-only Authorization to grant access to the specific object while installing the ...


0

1 - Create a List View 2 - Create a page and insert a list webpart 3 - Edit the webpart and point to created view 3 - Grant the permission to the page


1

So, first off, yikes. My first question to a situation like that will always be, "Do we actually need a single library with that many things inside of it? If so, why?" Now, to the problem at hand. Why have it all in a single library? Why not create a second library and set permissions to grant read access to your read user group on that library? You ...


0

If you are using File.MoveTo it will also copy the permissions of the individual files over to the target file, if there is item level permission.See below code which copies over the permission of the library: static void Main(string[] args) { using (SPSite site = new SPSite("http://serverName:1111/SitePages/Home.aspx")) { ...


0

A user with "design" access will be able to edit view all items in the list. However for some strange reason, even an administrator is unable to run workflow on behalf of the creator of the list item.


0

so it turned into an unsolved problem. I have removed the site collection and created it from scratch. It works now. So the problem was specific just for this one site collection and i have no clue why it has happened. Regards


3

You can check the Template type of a web object. If it is APP#0 you don't need to add it to List. The example here shows how to get the web template. http://stackoverflow.com/questions/19382310/using-client-object-model-how-to-fetch-the-web-template-name-and-web-templat


0

If it is Sharepoint 2013, it might be worth checking to see if the 'minimal download strategy' site feature is activated, and deactivate it and see if that solves your URL issue. It's caused issues for me before.


0

What am I doing wrong? You're using the wrong approach. Instead of creating a new permission level for the whole site, what you're actually trying to accomplish (preventing people from editing specific content) should be accomplished by customizing that content's permission settings. You don't need to create a whole new library, nor create and set a ...


2

Site Settings -> In Users and Permissions section : Site Collection Administrators If you are in a subsite, go to Top Level Site Settings, then Site Collection Administrators


0

Hi app installed in SharePoint can't access all the details from the hosted web. in project you have to specify the permission in app-manifest.xml that what content you want to access from host web. This will get the permission while installing the app and only tenant administrator and access the complete details about users information and some other thing. ...


0

Getting WCF Rest to work from SharePoint Hive context is tricky. Even in DemoService.svc also you need to include assembly token and all the data so that the service request is filled by dll in assembly. For Ex: Service="rest.Impl,yourdllName,Version=1.0.0.0,Culture=neutral,PublicKeyToken=2c644798ac000000" All together i suggest you to host the WCF Rest ...


0

resetRoleInheritance() method is present in SharePoint 2010 JavaScript client object model and it resets the role inheritance for the securable object and inherits role assignments from the parent securable object. SP.List inherits from SP.SecurableObject Class. Hence resetRoleInheritance() can be called on SP.List object just like breakRoleInheritance. I ...


0

In SharePoint 2010 you don't have this option "adding external user". but you have couple of options. simply add him into the active directory and grant him access. AD LDS is a feature of Windows Server. While AD LDS itself is free, remember that your external users must have both Windows and SharePoint CALs. check this ...


1

There is no support for anything like this out of the box. But if you're using your own Membership provider with the FBA, then you can implement the functionality in that, by either disallow the user after the specified date or remove a role after the date and use that role for giving access. If you're using some standard Membership provider, then one ...


1

I have also faced similar kind of issue in one of my event receiver, I changed "Who can view the membership of the group" to everyone. This resolved my issue.


0

You can do this by editing the item level permissions in the advanced settings of the list, there should be a section about who gets to edit and who gets to read which documents. This does not apply to document libraries I think.


0

Not sure why the PowerShell changes didn't do it for me so I tried this below and it worked. I set it to 5 (with the POSH changes set as they were) and got expired messages, so then set it to 10 minutes. STSADM.EXE -o setproperty -pn token-timeout -pv 10


1

When a user is added to Office 365, the user automatically becomes a member of Everyone except external users. By default, the Everyone except external users group is added to the Members group on the SharePoint Team Site. It is automatically assigned a permission level of Contribute. This means all users who are added to Office 365 can view, add, update, ...


2

This is not supported by SharePoint Online, here is the excerpt from the reply of a Microsoft support: "it is not feasible to remove SharePoint Online internal users from this group. This group is created by SharePoint Online system by default to contain SharePoint Online internal users. It is used for the scenario when sharing some SharePoint Online ...


2

Try: $item.BreakRoleInheritance($false,$false) You will have to specify the first parameter as False, which means all the permissions from the parent will not be copied over. See the documentation for BreakRoleInheritance .


0

Although a folder has been added to a page as an app, it will still be actually located on site-level scope (see Site Contents). If the users don't have a permission to the site they can't access the folder although unique permissions have been added.


0

At least the people should have read access to your site. Otherwise they will get an access denied. When using SharePoint 2013 you may try to "share" the folder and hope SharePoint will set permissions accordingly.


0

I think the best way to achieve this is by using PowerShell Script. Check this one : https://gallery.technet.microsoft.com/office/SharePoint-Permission-2840f327 It's a script that checks for a specific user access, but you can easily adapt it to target your libraries only and get permissions for all users.


1

I know its been so long but for someone in the future who has issues make sure you have below: If you use the Term-Driven Page with "Friendy" URL (MS's typo, not mine), there are a couple things that must also be in place for it to show on the navigation for Users with just visitors rights: In the Term Driven Pages tab of the Term Store Manager, you must ...


0

I had this same issue, and I am not sure what I changed that caused this to happen. After I first installed SharePoint it was working, then after modifying a lot of things, it stopped working. How I fixed this very frustrating issue. First I logged into the SharePoint server and ran the SharePoint 2013 Products Configuration Wizard. Next I went to ...


0

its depend upon the tools, usually if you migrate the users using the tools and then migrate the content it works like a charm. we did the same thing with sharegate for small set of user and no issue at all. Update: I used tsunami tool to migrated from non sharepoint to cloud. In that project we migrate content then mapped the user...that help us in ...


0

Does the group have permissions to the list? I can't tell but the contribute permissions for the group look like they are at the site level. Go to the list and then to go List Tools Ribbon -> List -> List Permissions Look to see that it says: "This list inherits permissions from its parent" If that is NOT there then the list has unique permissions and ...


0

You can force the document to be read-only by clicking check out option. But you cant restrict user from download it and edit by using save as option.



Top 50 recent answers are included