Hide button based on domain group

A

andyoye

How can I hide a button (web form, IP2007) based on a domain group? Say I
have a security group called "hq\east coast" so that button should be
visible Only if a user is member of this group.
 
P

Paresh

How can I hide a button (web form, IP2007) based on a domain group? Say I
have a security group called "hq\east coast" so that button should be
visible Only if a user is member of this group.

Hi,

For finding out user information, you can take a look at the following
lins:
http://blogs.microsoft.co.il/blogs/...et-the-current-user-without-writing-code.aspx
http://blogs.msdn.com/infopath/arch...e-user-profile-through-moss-web-services.aspx
http://blogs.msdn.com/infopath/archive/2007/01/10/implementing-roles-in-browser-forms.aspx

Also, there is a UserName() function which you can use.

After fetching domain name, you can apply conditional formatting on
the button to make it visible / invisible.

Do let me know if you need any further info.

Thanks,
Paresh
 
A

andyoye

Thanks for the reply. I don't want to use conditional formatting as "HQ\east
coast" group has more than 500 members and members keep on changing so
hiding the button based on "current user/userName()" is not a viable option
for me.

How about hiding the button based on a SharePoint group? If that is easy, I
can make my domain group member of the SharePoint group.
 

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