Restrict Form and view Access

I have a requirement for a Domino web app to restict access to certain forms and views to select users. These users are a combination of ACL roles and also a computed formula. If the user does not have access then I need to redirect to an error page of some sort.

The one method I know of restricting access for who can open a form is using the security setting in the form - All authors and above setting and use the ACL roles there. But how do I also use the computed formula that gets the the users who should have access in the form access list?

Any ideas welcome… My only concern is that it should be secure and no way an unauthorized user get access to the forms and views, no loopholes to hack… please help… thanks

Subject: Restrict Form and view Access

You could use Readers fields which contain Roles to restrict who can see the documents.

So even if they do access the view through Notes, they will see an empty view.

If you’re on the web, you will have an embedded view to display the documents, so you can hide the embedded view when the user doesn’t have the role and display a warning message.

To test if the user has the required role, use @UserRoles. It returns all the roles a user holds.

Some might tell you you can limit access to the views by controlling who can actuallyuse those view. View level security. That IS possible, but usually discouraged as much as possible. What if you make sure you grant access to a role to all the controlled access view. Say that role is deleted from the database and 6 months later someone realizes the views are gone. Nobody remebers the role used. You’re locked out of those views forever.

That’s IF you used a role to control access to those views. I’ve seen individual users in that setting. What happens when the user leaves? The views he saw are gone forever.

The reader fields is really the best option IMHO.

Subject: RE: Restrict Form and view Access

Thanks Luc! Unfortunately I cannot use the readers field as the documents need to be available to all users but there are specific forms with embedded views and some operations on documents from there that only selected users can perform. for e.g. in the form with embeded view, authorized users can first search on some criteria and then there is a check box for each document and they can perform some processing for the selected docs.

Now, I need to make sure that the form with the embeded view and the view itself is protected. The only users that can have access are say in Role1 and also computed based on a dblookup.

Now the problem is - using the Role, I can give access based on the view level access but how to give the other users (conputed by lookup) access to the form/view?