Link to home
Start Free TrialLog in
Avatar of UmweltIT
UmweltITFlag for Australia

asked on

Can I Use C# to filter a WSS 3.0 Form Library by Windows Logins?

Hi Experts,

My brain says it's feasible, but not being able to program a line of C# has run me into an issue.

My company is starting to use InfoPath 2007 to develop electronic forms for a number of our workflows.  These we are storing in Form Libraries within our WSS 3.0 intranet site.  The development and such has gone smootly, up to now.

One of our forms require a level of privacy.  We want the form available to only the creator, our compnay's Directors and Manager (easy done) and a set of 2 other people, as assigned within the form.  For example:

Form 1 is initiated by Bob, who assigns the form to his superiors Mary and Mike.  Company Directors Bill and Jane, as well as General Manager John definately need to see ALL forms (this has been handled with Sharepoint permissions).  ONLY the people mentioned above should be allowed to see Form 1; if another user Matt comes into the form Library, he shouldn't be able to see Form 1.

Without using WSS permission controls (as this would have to be changed for every form that goes into the library) can permissions on indivdual library items be set?

I was thinking it would be possible to retrieve the logon credentials of a user at library page load, check them against the names listed on each form (which can be retrieved from library columns), and only display the forms that contain the user.  Am I right in thinking this is possible?  If so, how would I go about it?
Avatar of techExtreme
techExtreme
Flag of India image

You can register a event handler against the concerned document library which when a form is added/modified can modify its permission as per your need automatically. This is very useful. If this is not what you want lets discuss.
Avatar of UmweltIT

ASKER

That sounds pretty close to what I'd be interested in.  Would I be able to find/code sucg an event handler with minimal fuss?
ASKER CERTIFIED SOLUTION
Avatar of techExtreme
techExtreme
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Rated as a B only because I needed to learn more about C# coding