Tag Info

Hot answers tagged

9

No, you cannot elevate privileges in JavaScript CSOM, nor would you want to. Remember there is nothing stopping end users from crafting their own scripts and running them via a developer tool like IE's Developer Tools or Firebug. If you could elevate privileges via JavaScript, it could mean disaster on your Farm as regular users could just write a script ...


2

You will need to break inheritance on the list items and then assign or remove permissions as needed. With SharePoint 2013 workflows - there is no activities available to do this. You can make a REST activity to call the API to do it, but it's an undocumented API (i.e. not supported). The other option is to use SharePoint 2010 workflow. You can either ...


2

You would want to create a default view on your tasks list where Assigned To is equal to [Me] and percent Complete is less than 100. This will filter the data to show the current logged in user's tasks that are not complete. This isn't secure in the sense, the user could get to all the list items, it is just a filter of the existing list data. I don't know ...


2

In 2010 it is not possible, not sure about sharepoint 2013.You may refer, http://dannyjessee.com/blog/index.php/tag/apps-for-sharepoint/ https://social.msdn.microsoft.com/Forums/en-US/835b0d48-8fb5-47d4-bc1a-502c18f59568/runwithelevatedprivileges-in-share-point-client-object-model


2

You could create an Add Only permission level, but by it will include view items. If you apply this to the list permissions, it would allow them to add items. You could use the item level permission settings (List Settings -> Advanced settings -> Item-level Permissions set Read access: to Read items that were created by the user) that allows them to view ...


1

You are able to do it with custom permission levels. http://www.sharepointdiary.com/2013/05/how-to-create-new-permission-level-in-sharepoint-2010.html Link is for SharePoint 2010, however 2013 won't be too different. Rename file is not one of the options though. However, If a user cannot delete a file, they should not be able to rename it either. Try a ...


1

Use SharePoint:SPSecurityTrimmedControl with PermissionsString="FullMask". Then only users with full control or site collection administrators will be able to see the Gear icon for site actions, but this will hide all site actions menu . <SharePoint:SPSecurityTrimmedControl ID="SPSecurityTrimmedControl1" PermissionsString="FullMask" runat="server"> ...


1

You should use microsoft.SharePoint.Client.RoleDefinitionBindingCollection instead of Microsoft.SharePoint.Client.RoleAssignment. Try below snippet (Not tested but will give you idea of what all steps are required): # Get the list by Title and load. $web = $ctx.Web $list = $web.Lists.GetByTitle("Quiz") $ctx.Load($list) # Load in list of groups on the ...


1

If you want to do things based on the current user's permissions here's your solution: var ctx = new SP.ClientContext.get_current(); var web = ctx.get_web(); ctx.load(web, 'EffectiveBasePermissions'); ctx.executeQueryAsync( function () { var permissions = web.get_effectiveBasePermissions(); ...


1

must not see How crucial is it that the user not gain access to filtered items? Set a filter on a view, Assigned To = "[Me]". Make it the default view and if necessary delete other views which would reveal the items.


1

One option is to make two lists, and utilize a Workflow. The concept is user has add/list permissions on List1, no permissions on List2. User creates item in List1, Workflow then moves the list item to List2. You can either leave the item in List1 if you wish the users to be able to see the items they've added (though another workflow may be needed to ...


1

To change the permission sets you need to have full rights or be a site collection administrator. However, as @unnie stated, you can't control permission on a per column / field basis directly with SharePoint. There are a few ways to approach this that I can think of: Create a custom form and push data to list - this gives you most control and you can ...


1

Open the SharePoint Central Administration web page from another PC.



Only top voted, non community-wiki answers of a minimum length are eligible