Column level security in SharePoint 2013 - sharepoint

I have a list (Employee Details) having six columns
ID
Name
Address
department
Passport Number
Mobile Number.
Now, for security purpose I want to hide some columns
(ex-Passport Number, Mobile Number) for specific group of people. How can we achieve this?

If you want to achieve this at view level. Follow these steps.
Create different view based on your requirement. Remove unwanted
columns from view.
Go to site settings --> People and Group --> Groups --> New --> New Group.
Give the name and choose the permission level for group members . Click OK.
Open your group --> new --> add users to this group.
Go back to your list.
Click on edit page and go to your web part properties.
Go to Advanced.
In Target Audiences, select the person or group. Click OK. Now, only the persons in target audiences will be able to see that view.
Once verified, Publish the page.

This is not possible out of the box. You need to use 3rd Party tools or code you own solution. There are very good articles out there. One example is
Column Level Security in SharePoint
How to: Create a Custom Field Type and Field Control
You need to create a Custom Field Type which can be security trimmed within your code.

Related

Can I set list item user permissions for the username entered in item's field?

SOLVED:
I was able to add permissions for the user specified in the item Name field following these steps:
From within the Impersonation Step, add a Add List Item Permissions action.
Click these permissions link and then click the Add button.
In the Add Permissions dialogue box, click the Choose button.
Click the Workflow Lookup for a User from the user list and click Add.
In the Lookup for Person or Group dialogue box, set the Data source value to Current Item.
Set the Field from source field to the field that contains the user and click OK in the dialogue boxes to complete them.
Last thing you need to do is click the this list link in the action and select Current Item.
I have a simple SharePoint list with 3 fields: Title, Name, Idea. Using SharePoint Designer 2013 and implementing a 2010 workflow, I am able to strip the permissions of items as they are added to the list.
My question is this: is there a way to add permissions for a user that's specified in the Name field? So if John creates and item and enters "Sam" in the Name field, then Sam will receive unique permissions.
Thanks for the help. This would be relatively simple using Nintex :-/
You can create custom workflow activity to grant permissions to specific user on listitem.
There are lot of activities available for sharepoint designer to grant permissions.
You can check:
https://spdactivities.codeplex.com/wikipage?title=Grant%20Permission%20on%20Item

Hide promoted links in sharepoint 2013?

I created a webpage containing various promoted link tiles. This page is my default page (when the user logons he/she is redirectedto this page). Based upon the group to which the user belongs I want to show some specific promoted link tiles and hide the rest of the promoted link tiles.
For example, my webpage contains 4 Promoted Link tiles.
For a normal user I want to show only 2 Promoted Link tiles and hide the rest of the tiles.
Whereas for admin I want to show all the Promoted Link tiles.
Or I thought of having different pages for different groups, but I couldn't find any setting in SharePoint 2013 to have different default pages for different groups.
I'm using both of the solutions listed above on the same site to meet different needs.
I have one Promoted Links list that provides 'activity' links for a number of different user types. In order to keep the user experience simple for users I'm setting permissions on individual items in the Promoted Links list to hide specific tiles/links from groups that don't need to see them.
On the list, you need to break permissions with the site, then change the permissions on the specific tiles you're 'hiding'.
I'm using SharePoint security groups to set permissions.
I'm using a second list to provide additional links on the page, but want to hide some of the links - sort of an active/inactive thing. Rather than adding a new field (which I haven't tested yet) I'm using the Order field as a filter. For example: If Order is less than 100, show them.
You can create the new view either in the browser (the 'Standard View' template will give you a tile view - surprisingly) or use the solution above for adding a view using SharePoint Designer. Either method will allow you to set a filter, sort, etc.
Alternatively, if you want to create another list type view, you can create a new view and use 'All Promoted Links' as a starting point.
You can create different views for different users using SharePoint Designer.
Below are the step by step guides.
Click on any blank region of the Promoted Links. This will show the ribbon for that Promoted Link.
Click List tab on the ribbon.
Click Create View.
Click Custom View in SharePoint Designer
Allow it to open in SharePoint Designer.
Give a name for your view, e.g. Test and click OK. By default, SharePoint designer takes Tiles view.
Close SharePoint designer and go back to your Promoted Links in browser.
Click the List Tab on ribbon.
Select the view you just created from the dropdown menu.
Click Modify View.
You can hide or display any link by giving a suitable condition for filter.
Actually the above thing is not possible in SharePoint.
For every user there will we same page in SharePoint but depending upon the group to which a user belongs we can hide and show a promoted links.
First create some groups and assign user to a particular groups and than change the permission of promoted groups to show/hide that particular group.

Creating a sharepoint 2007 search for a list (results only from that list)?

I have been researching this for some time, and have not been able to find a solution. I would just like to have a search bar that when an ID is entered, the search will return all the list items that have that ID.
I'm sure I am leaving out details (as I am a sharepoint novice), but any help would be greatly appreciated.
What you need is not search, but filter.
In the view of you library, follow these steps :
Put the page in edit mode
Add a web part "Text Filter Web Part"
Open its tool pane
Name the filter, "IDFilter" for example, and validate
Still in edit mode, select "Modify shared Web Part" --> "Connections" --> "Send filter values to name of your library"
Choose the field that holds your ID and click "Finish"
That's it. You can now type the ID in the field, and it will dynamically apply a filter on the ID field.
That said, you should post you future questions on http://SharePoint.stackexchange.com. this is a SharePoint dedicated stackexchange site.

SharePoint DropDown List Filter

I want to be able to filter a SharePoint list based on the values present (easy by clicking the filter button at the top of the list for each column). However I'd like to give options in a drop down menu and once chosen the list would be refilted based on the options I give. Is this possibile to do in the browser or would it require designer or actual code? Thank you.
This is all SharePoint 2010 Enterprise Server knowledge; I've never used 2007.
What #Ryan is alluding to here is that you can click a down-arrow on most list columns to filter them. One caveat is that if the column is multi-select, it won't display a drop-down. (SharePoint doesn't know how to group, filter, or sort on multi-select columns.) Another caveat could be that if you're displaying the list items in such a way that their headings don't appear (such as in a List View web part, or maybe in some of the styles...) you obviously won't be able to filter.
A solution might be to use a "SharePoint List Filter" web part, which uses a list column as the source for filter values which can then be sent to other web parts -- such as a List View web part. Presumably, you could use the list you're intending to filter as a source for the Filter web part itself. From a UX perspective maybe this might help you display the list with different styling, but still get the drop-down filter directly in the content area.
A caveat with the "SharePoint List Filter" web part is that it's not actually a drop-down per se, but instead shows a little filter icon that pops up a dialog in which users then have to select a value.
Note there's also the "Managed Metadata Navigation" feature that would give users dropdowns (for e.g. choice columns) and metadata filter fields (for managed metadata columns). These show up in the Quick Launch (left-nav area) if configured on the list/library settings. The feature must first be enabled on the site.

Customize Survey fields in Sharepoint 2007

I have a Survey list which has several questions, one of those is people picker field and the another one is single line of text field.
I need to hide a perticular question ( field ) based on login user. Requirement is as below
When the user logs in as admin
a. Display ‘people picker’ and should not allow user to pick his name from people picker.
b. Hide Single line of Text field.
When the user logs in as ‘Non-Admin’
a. Display ‘Single line of Text' field and default it to have the logged in user name (without domain name).
b. Hide ‘People picker’ control.
I am thinking that we can do it by placing javascript in content editor webpart and add it in newform.apx of survey list. Can anybody give me the proper approach to get it done?
Thanks in advance
You might like to try creating a custom field control, a differnet one for each field.
Javascript is fast and involves minimal deployment, but is fiddly and can be turned off.

Resources