Validate permissions for opening a form

A

Andyoye

IP 2007, MOSS 2007

Is there a way to block other users to open a form if they are NOT the
creator of the form?

Goal is: only the form creator should be able to open the form from a
SharePoint form library.

Thanks
 
S

Swathi (GGK Tech)

Hi,
You can achieve this using user roles in InfoPath. Add two user roles to the
form (Tools-> user roles) then add two roles and group names. Set the creator
as the default role. Now set a open rule (Tools -> Form options -> Rules) as
if the current user’s role is mot equal to creator then set a Boolean field
to true. Close the form using code if that Boolean field is true.
 
A

Andyoye

Thanks, how about user's manager (Manager in Active Directory) have the
abilty to open the form?
 
S

Shiva

Hello,

You can add the list of users’ xml as resource file. In this file contains
list of users able to open the form. While opening the form you have to check
the log in user is exist in that list or not. If user does not exist in that
list then close the form otherwise open it.

Otherwise you can use any web service to check the login user is available
in Active Directory or not?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top