views:

14

answers:

1

Hello, I have a project where I many files in the same folder, but want to set permissions by a department number which is a column value of each file. Can I make a workflow to do this somehow, so when a file is added and the dept# is picked. Sharepoint will lookup that department number and give it the appropriate permissions?

Thank you, Adrian

A: 

Send me an email at "colin.dekker @ quicknet.nl", I'll send you some code (an ItemEvenReceiver). It updates the item based on a lookup column "Roles" (which in your case would be called "Departments"). The lookup references a list that has a field of type "Person / group" in it. The Item Event receiver gets these groups and sets the item's permissions with them.

Colin

related questions