Switch views based on a user in SharePoint group by using Info path 2010

Posted on 2013-01-20
Last Modified: 2013-02-13

Based on the SharePoint group i need to switch views in Infopath 2010 Forms. how can i do it?

I can change view based on the current logged username but i need to do the same if the user is exist in a SharePoint group.

Your support please.

Question by:mshaji
  • 4
  • 2
LVL 31

Expert Comment

by:Jamie McAllister MVP
ID: 38800105
To check the group membership you do this;

Author Comment

ID: 38800122
I tried already this and its not working with me.
Do you have any other easy way steps
LVL 31

Expert Comment

by:Jamie McAllister MVP
ID: 38800125
Perhaps you could offer more detail. In what way doesn't it work? Are web service calls available to you? Is there some sort of error? What happens?
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.


Author Comment

ID: 38800129
I created the UserProfileService web service but its not available in the dataFields group

I reached until the step

Expand the dataFields group as shown in the screenshot and select Value
Stuck here

LVL 31

Expert Comment

by:Jamie McAllister MVP
ID: 38800164
Difficult for me to say. I cant see exactly what you're doing to add the Web Service.

You're deffo clicking on the secondary  datasource?
LVL 31

Accepted Solution

Jamie McAllister MVP earned 500 total points
ID: 38800661

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Work Over Net is a new and very powerful collaboration product. With its new easy interface it is becoming very competitive to other similar products like webex and office interactive. WON 2010 have the standard business tools needed for multi-offic…
Pimping Sharepoint 2007 without Server-Side Code Part 1 One of my biggest frustrations with Sharepoint 2007 in the corporate world is that while good-intentioned managers lock down the more interesting capabilities of Sharepoint programming in…
Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now