Is there away to hide views based on a usergroup using JavaScript? At first we had one List and created views for each section. Now we only want the individual views shown only if a visitor belongs to a certain group. I understand that if we use a GetUserId method we can get their id. Is there away to get the group then make certain views display based on Group?

1 Answer 1


You could create a blank Page and then add a a list view web part to display a specific view of your list. Make this web part only visible for a certain group using Advanced-->Target Audiences from the web part properties. Repeat these steps for all views.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.