We are developing a workflow. The workflow creates folders for specific project dynamically . When a folder(for a project) is created, we need to set access permissions. The access permissions are defined in a separate database table. The table has the list the users who can view the documents of a particular project.
We have tried to achieve using Security Templates, but could not do it. We tried APIs to achieve the same, but not clear on how to use AccessPErmissions to set access at user level.
Can anyone let me know how to do this ?
This topic has been locked.
2 replies Latest Post - 2012-11-21T15:57:44Z by cwoliveira
Pinned topic Access permissions for a folder
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2012-11-21T15:57:44Z at 2012-11-21T15:57:44Z by cwoliveira
SystemAdmin 110000D4XK199 PostsACCEPTED ANSWER
Re: Access permissions for a folder2012-11-20T02:54:28Z in response to SystemAdmin>> We tried APIs to achieve the same, but not clear on how to use AccessPErmissions to set access at user level.
I'm not sure what you mean by that. Manipulating an object's ACL is reasonably well documented. If you're trying to do it from a WF step, I don't know if CE_operations has the appropriate methods implemented, but you could always write your own.
I assume the list of users in the separate database is somehow dynamic or otherwise complex. There must also be a a property value or something about the folder that tells you how to look things up in the separate database. I think you want to put a CE subscription on the create event for project folders. You could do it either via an async event handler or, for recent CE releases, via a change preprocessor. The latter is more efficient.
cwoliveira 270003P29718 PostsACCEPTED ANSWER
Re: Access permissions for a folder2012-11-21T15:57:44Z in response to SystemAdminHi,
There are some references about working with permissions. You could also explore a additional approach using Marking Sets.
Working with Marking Objects