user roles only allows one condition? - InfoPath Dev
in

InfoPath Dev

user roles only allows one condition?

Last post 08-18-2013 05:20 PM by Patrick Halstead. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 08-12-2013 03:42 PM

    • Doreen
    • Top 50 Contributor
      Female
    • Joined on 08-11-2010
    • Federal Way, WA
    • Posts 291

    user roles only allows one condition?

    I am not really a newbie but I think this should be easy to answer  - although I can't answer it so maybe it's not :).  Here goes:

    I have a question about user roles. I have 3 user roles:

    1) Supervisors
    2) HR
    3) Everyone

    If a user is not a member of Supervisors or HR I want the form to switch to Access Denied view on form load.

    It seems to me the following rule should work but it doesn't:

    Example 1

    Condition:
    if current user role is not equal to Supervisor or
    if current user role is not equal to HR

    Action:
    Switch to Access Denied view
    (This rule denies Everyone AND HR role access)
    ---

    The Rule I have in place that works is this:

    Example 2

    Condition:
    if current user role is equl to Everyone

    Action:
    Switch to Access Denied view

    (This rule seems to be working)

    ---

    My question is why doesn't the first rule example work?  when I add an "or" condition it ignores the 2nd condition (the "or") and does not allow the HR role to view the form when it should.

    My concern is that all users are members of Everyone so how can I be sure that they aren't mistakenly singled out when they are a supervisor or HR member too?  

  • 08-12-2013 09:51 PM In reply to

    Re: user roles only allows one condition?

    The order of user roles matters. What is your order?

    Patrick Halstead
    Project Manager at Qdabra
  • 08-13-2013 02:45 PM In reply to

    • Doreen
    • Top 50 Contributor
      Female
    • Joined on 08-11-2010
    • Federal Way, WA
    • Posts 291

    Re: user roles only allows one condition?

    User role order is: 1. Supervisor*, 2. HR, 3. Everyone

    * Supervisor is set to default and initiator

     Form Option Rules on Open behavior  is if User's current role is equal to "Everyone" Switch to view: AccessDenied

  • 08-18-2013 05:20 PM In reply to

    Re: user roles only allows one condition?

    I would invert it. Assume that the Everyone user role is the default and make the read only view the default view.

    Only switch the supervisor view if they are in that group. You can still make supervisor the initiator, but it should be the lowest one in the list (i.e. #3).

    Patrick Halstead
    Project Manager at Qdabra
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.