Use Active Directory To Simulate InfoPath User Roles

Similar documents
MODULE 4: ACTIVE DIRECTORY WEB SERVICE

Lab 11-1 Lab User Profiles and Tracking

SharePoint 2010 Site Owner s Manual by Yvonne M. Harryman

Implement static and dynamic queries. using QuerySharePoint

Static query Switch to a dynamic query Hints and Tips Support... 12

Use qrules to submit to DBXL

Printing Tips Revised: 1/5/18

University of North Dakota PeopleSoft Finance Tip Sheets. Utilizing the Query Download Feature

HOW TO USE THE EXPORT FEATURE IN LCL

DEFINE TERMSETS AND USE QRULES

ESRI stylesheet selects a subset of the entire body of the metadata and presents it as if it was in a tabbed dialog.

Microsoft Access 2010

SMART Recorder. Record. Pause. Stop

Select the Parks within Forest Acres

Microsoft Access 2013

Microsoft Access 2013

Creating Pages with the CivicPlus System

Creating Dynamic Objects

Instructions for Using the Databases

Importing source database objects from a database

How to Add and Remove Permissions to Your Page

Filtering - Zimbra

Lab 4: Pass the Data Streams to a Match Processor and Define a Match Rule

Shopping Cart: Queries, Personalizations, Filters, and Settings

Wireless Setup Instructions

Virto SharePoint Forms Designer for Office 365. Installation and User Guide

Microsoft Office 2016 Mail Merge

HOW TO EXPORT BUYER NAMES & ADDRESSES FROM PAYPAL TO A CSV FILE

Outlook Create a Contact Group

Adobe Reader (AR) and Internet Explorer (IE) Browser Settings. Adobe Reader and Internet Explorer Browser settings

From the Insert Tab (1), highlight Picture (2) drop down and finally choose From Computer to insert a new image

MAP YOUR FORMS TO SHAREPOINT

Global Preview v.6.0 for Microsoft Dynamics CRM On-premise 2013, 2015 and 2016

SmartJCForms User Guide

leveraging your Microsoft KBase V3 Manual 2.1 INTRODUCTION... 3

Web Browser Application Troubleshooting Guide. Table of Contents

Office 2010: New Features Course 01 - The Office 2010 Interface

SQL Server Express Installation Guide

Respondus 4.0 Instructor Guide

Downloading & Installing Audacity

Fairfield University Using Xythos for File Storage

Starting ParTEST. Select Start, Programs ParTEST ParTEST Enter your User Name and password

Quick Guide FAST HR. For more resources, including a guide on FAST HR codes, visit # Instructions Screenshot

Workflow for efilecabinet On-Premise User Guide

HOW TO ADD SIGNATURE TO MICROSOFT OFFICE OUTLOOK

Independence Blue Cross Consumer Market Individual Products. Retail Platform User Guide

Creating Dashboard Widgets. Version: 16.0

AndroPay Admin Center Getting Started

WordPress Instructions

LiveNX Upgrade Guide from v5.1.2 to v Windows

Drupal 7 guide CONTENTS. p. 2 Logging In

Budget Reports for All Users

Documentation Tool Tutorial Tutorial for Creating a Documentation Tool Interactive in the Texas Gateway

Tutorial 1. Creating a Database

DOCUMENT IMAGING REFERENCE GUIDE

Instructional Improvement System (IIS) Dashboard District User Guide Statewide Longitudinal Data System (SLDS)

Using the hierarchy... 4 Using Filter Groups... 7 Defining Filter Groups... 7 Example... 8 Linking Filter Groups Limiting functionality...

OPENING A LEADS.TXT FILE IN EXCEL 2010

Modifying Preferences in Microsoft Outlook 2016 for the PC

Getting Help in Microsoft Office

Access Intermediate

CTC Accounts Active Directory Synchronizer User Guide

Virto SharePoint Forms Designer for Office 365. Installation and User Guide

Respondus LockDown Browser Guide

Tutorial- How to hide and show a control using rules

How to Import a Certificate When Using Microsoft Windows OS

Easy Edit Editing the Public Website

Inserting or deleting a worksheet

Fort Bend Independent School District Access Guide to Family Access

migration from iq.suite Store to contentaccess

LINK TO YOUR DBXL FORMS

Component Considerations

The guide is divided into sections which describe how to configure and manage different aspects of the Hosted PBX service for your business group.

Setting up ZENworks in Your Tree

leveraging your Microsoft Calendar Browser for SharePoint Administrator Manual

Microsoft Office Word 2013

EPM Live 2.2 Configuration and Administration Guide v.os1

Creating a Portfolio in LiveText

CollabNet TeamForge 5.3 Evaluator s Guide

SharePoint AD Administration Tutorial for SharePoint 2007

Guide to fix the problem with Problets

OneNote. Using OneNote on the Desktop. Starting screen. The OneNote interface the Ribbon

Installation & User Guide

Introduction to GIS & Mapping: ArcGIS Desktop

BDM ApplicationXTender Running Queries and Managing Student Data

Forms/Distribution Acrobat X Professional. Using the Forms Wizard

ADD CONTACTS TO YOUR CONTACT LIST. 4 GROUP CONTACTS IN MESSENGER. 6 MANAGING CONVERSATIONS. 7 SETTING YOUR ALERTS PREFERENCES. 16 COMPLIANCE.

Log On to Commonspot Adobe Acrobat Pro Microsoft Accessibility Checker Hero Image with Text... 6

Internet Explorer/ Edge/ Chrome/ Opera (Windows) Edition

Excel Advanced

etouches Sync Setup *Screenshots with directions below

PISCES Installation and Getting Started 1

Introduction to Cascade Server (web content management system) Logging in to Cascade Server Remember me Messages Dashboard Home

Lava New Media s CMS. Documentation Page 1

The MAXQDA Stats Data Editor

Create a Customised Tab on the Office 2013 Ribbon

DSS User Guide. End User Guide. - i -

Service Line Export and Pivot Table Report (Windows Excel 2010)

DocAve Governance Automation Online

Reporting Center. Primary (Stand-Alone) Interface

Transcription:

Page 1 of 7 Use Active Directory To Simulate InfoPath User Roles You can leverage the information returned by the Active Directory web service to simulate InfoPath User Roles, which are disabled in browser forms. When querying Active Directory, we really only need one property to be able to determine what the user should see in the form. In this case, we will use the Department property: We will set up the browser form to show different options for users who are a member of this Department. Note: You are not restricted to use this specific property. You could: Use any other property (i.e. zip code) Call GetManagerAlias, which determines the current user s manager, and base your form logic on that. Call IsUserMemberofGroup, to determine if a user is a member of a specific group, and base form logic on group membership. USE THE ACTIVE DIRECTORY DATA TO OBTAIN USER INFO 1. With your form in design mode, go to Data > Resource Files. 2. Select FormOptions and click Export. Save the FormOptions.xml file to your computer. 3. Open FormOptions.xml in Notepad. 4. Add a node called CurrentUserDepartment and save the file

Page 2 of 7 5. In Data > Data Connections, select FormOptions and click Modify. 6. Browse to attach the recently modified FormOptions.xml file and finish walking thru the data connection wizard. 7. In the Data tab, click Form Load. 8. Click New and select Action. Call this action Determine current user s department 9. Next to Run these actions, click Add and select Query for data. Select the GetMyInfo data connection.

Page 3 of 7 10. Next to Run these actions, click Add and select Set a field s value. 11. Click the icon to the right of Field and select the new node added in the FormOptions secondary data source. 12. Click the icon to the right of Value and click Insert field or Group. 13. Use the dropdown to switch to the GetMyInfo secondary data connection. 14. Expand the datafields node, select the Value node, and click Filter Data. 15. Click Add. We need to add a filter because the Active Directory web service returns multiple keys and their values. At this point, we want only the Department.

Page 4 of 7 16. Select Key in the first dropdown and is equal to in the middle dropdown. In the third dropdown, select Type text and type in department (no quotes). 17. Click OK until all dialogs are closed. ADD VIEW SWITCHING For the sake of illustrating the concept, let s show how to switch views based on the department. 18. Go to Page Design. 19. Under View, add a new view and call it Sales.

Page 5 of 7 We ve added a very plain canvas, since this is just to illustrate the technique. In a real world scenario, you would design this view as desired. 20. Still under Form Load, click New and select Action. 21. Next to Run these actions, click Add and select Switch views, and select the Sales view in the dialog. 22. We don t want this to always execute, so let s add a condition. Click on the blue text under Condition. 23. In the first dropdown, select the CurrentUserDepartment node. 24. In the middle dropdown, select is equal to. 25. In the third dropdown, select Type text and type in Sales. Click OK. TEST 26. Under File > Form Options, uncheck Show InfoPath commands in Ribbon or toolbar to ensure users won t switch views this way.

Page 6 of 7 27. Publish this form (remember: we have been attaching it to DAT in order to do this) and open the form, in the browser, using different user s accounts, some members of the Sales department and some not. Notice that the view switches as expected. (The training admin might choose to modify some user accounts to demonstrate this.) CONDITIONAL FORMATTING ON INDIVIDUAL CONTROLS Imagine that instead of an entire view, we want to control read/write ability on individual controls within one view. 28. Go to Data > Form Load, right click on the Switch views rule and select Disable. (We want to disable the action for the previous section of this document).

Page 7 of 7 29. Go to Page Design and switch back to View 1 (the default view). 30. Select a control that you wish to hide based on the user role and then select Home > Manage Rules. 31. Select New > Formatting. 32. Click the blue text under Condition. Enter the condition as shown in the screenshot below. 33. Check the checkbox for Disable this control. (You could choose to check Hide this control instead.) What we are accomplishing is making the control read only (or hidden!) if the user is not a member of the correct department. 34. Republish this form and open the form, in the browser, using different user s accounts, some members of the department and some not. Notice that the textbox is read only for users depending on their department.