Setting up a Data View Conditional Format for MOSS 2007 that targets a specific group - sharepoint

I need to figure out a solution to allow only a specific group of users with permission to view a List Item in Editform.aspx. I created a custom form which would allow me to apply conditional formatting for a specific table row. I had used the advance formatting XPATH expression "ddwrt:IfHasRights(16)" which worked with any group that had contribute rights or below, but I also need to exclude other groups like tier 1 - 3, Site Builder, Designer, etc or above "Approval" status. The purpose is to only allow a very selected group of individuals (I created a group called "Approvers") to see the hidden table row.
The current working on MOSS 2007 standard version.
Thanks for any suggestions!
Jason

You can use JQuery and SPServices to examine the group a logged in user belongs to, see my post here which explains the principle. In that case, it hides an element if a user belongs to a particular group.

Related

SharePoint Online column hide issue

Need to hide the sharepoint list columns for specific users without javascript
Site owner will be able to see all columns of that particular list
If you don't want to use JavaScript to hide list columns based on user permissions, you can try to use PowerApps to customize the list form to hide the columns. There is a thread about this topic, you can refer to it.
Note: This is not security, this is just hiding fields. A savvy user could use other means of modifying the list.
If you want the list is secure, it is recommended to create two lists for different users and set permissions based on your need.

Sharepoint People View - add column with groups

I want to customize the People View by adding a column with the group information. It seems I cannot do this from the List Settings as a Group collumn does not exist. So I guess I need to do some sort of custom development here.
What is recommended, Should I create a webpart and populate a grid manually from scracth. Or Is there an easy way to costumize the current list?
I just created a webpart and populated the grid manually using the Sharepoint Object Model API.

How can I narrow down my SharePoint 2007 View's filter results based on the Group By property?

I have a list within SharePoint 2007 and I've created a View that filters based on time ([Today]-30). I also have the View set to Group By a People or Group column. The end result is a View that displays all entries in the past 30 days grouped by individual.
So, what I'd like to do is only include those individuals that have 2 or more entries to display within the view. Is there a way to do this?
Thanks,
Brian
Views built through the UI are based on CAML queries, which only allow filters to be applied to items. As you can see from the schema, filters cannot be applied to group bys.
http://msdn.microsoft.com/en-us/library/ms415157.aspx
Your options are:
Filter it with some combination of sharepoint designer and jquery. This filtering would be done after the results are retrieved from the database, so it wont be ideal.
Write a custom web part.

Hide Column in Sharepoint List

I am trying to hide a column in SharePoint 2007 list based on Users.
When user submit a request the status column should be hidden and the value set as pending.
When Admin logged in he/she should able to edit the status.
Is there any way I can achieve this with out writing CUSTOM CODE.
Any help would be appreciated.
Thanks
Deepu
No custom code makes it tough. What about creating two views. one view has the column and another does not. Then create two sharepoint web pages and add the first view with the column to one, and the second view without the column to the other. Then put a security group or audience on the pages, so the appropriate one shows up for the user. Not great, but could be an option.
I think you'll have to do something with a custom field type - this guy has a solution very close to what you need - however there is custom code involved.
http://www.infoq.com/articles/Dressel-Gogolowicz-wss-security
The only other thing i could think of is to deploy a custom fldtypes.xsl to the hive and pattern match against your column. Then perhaps you could do some for of xsl transformation to show/hide the column - not sure how you'd indicate if a user is an admin or not though.
You are really limiting yourself by ruling out custom code.
Best of luck,
Shane

Sharepoint 2007 : How to set column level permission?

I would like to set the column level permission on list in Sharepoint 2007. I would appreciate help.
Example:
I would like to employee to fill other information in the form but not allow them to change the salary. Only admin can change certain fields.
You cannot do that.
SharePoint does not support column level security.
You would need to extend SharePoint to achieve this...
Take a look here.
http://code.msdn.microsoft.com/SecureField
Correct, there are no Column level premissions for SharePoint. However, a nice an easy workaround that I use all the time for this scenario is to create Custom List Forms and use the "display" option for the column to do not want users to edit. You then create an Edit form where the fields are editable for those that are authorized to edit the entry. Hope this helps.
I'm going to go out on a limb here, but I don't believe you have the ability to control permissions on individual columns in SharePoint 2007. At least I haven't heard of it. I browsed through list definitions and permissions but I didn't spot anything.
Another 3rd party tool is Sharepoint Column Protector by Datapolis. More details on the tool is discussed here (How to apply item level permission for sharepoint columns).
This is a common request for many SharePoint users, but MS does not provide. You can try 3rd party tools, such as BoostSolutions Column/View Permission and …

Resources