How to automatically check if user is part of a group so Infopath can switch views - InfoPath Dev
in

InfoPath Dev

How to automatically check if user is part of a group so Infopath can switch views

Last post 02-25-2013 06:16 AM by cheraideva2. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 10-10-2012 01:24 PM

    How to automatically check if user is part of a group so Infopath can switch views

    I am using Sharepoint 2007 WSS3.0. & Infopath 2010.  Is it possible for me to be able to see what sharepoint groups a user belongs to using this version?  From my previous research, I didn't think it was possible so I went ahead and purchased the ADWS tool. 

    I followed the user guide for ADWS and was able to test the IsUserMemberOfGroup connection successfully.  However, in that example, you have to specify the group each time and I am having trouble figuring out how to already have a group specified in the form and then check to see if that user is a part of it. 

    I looked for tutorials on your site for this but couldn't find anything.

    Any ideas?

  • 10-10-2012 01:48 PM In reply to

    Re: How to automatically check if user is part of a group so Infopath can switch views

    Never mind, I figured it out.  In the Form Loading events I did the following:  (based on miscellaneous steps in the ADWS User Guide)

    1. I queried the GetMyInfo data connection.
    2. Set the value of the IsUserMemberOfGroup username query field to sAMAccountName. 
    3. Then specified the value (the group I wanted to check for) in the groupAlias query field
    4. Then queried the IsUserMemberOfGroup data connection. (#1-4 are all the same rule under Form Load)
    5. Then I created a new rule in the Form loading events that checked if the IsUserMemberOfGroupResult data field was true and if it was, then I switched to the appropriate view.
  • 02-25-2013 06:16 AM In reply to

    Re: How to automatically check if user is part of a group so Infopath can switch views

    can you please share the all the step in image. if possible.

     

    thanks

    Deva

    Deva- CTS - Bangalore
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.