Line rule based on active directory group

  • 17 January 2014
  • 2 replies
  • 0 views

Badge +2

I would like to create a line rule so the process skips an approval step if the originator is member of a special Active Directory group (HR). In all other cases the process should go to the approval activity. 


Does anyone have an idea how to implement this?


Many thanks!


2 replies

Badge +10

Sure. 


In your line rule for your first variable call the out of the box Get E-mail For Group Users SmartObject.  (Note It’s always a good idea to test what the Smartobject returns by calling the SmartObject using the SmartObjects – Services – Tester tool)



First Variable


SmartObject ServerTask AllocationUsers and GroupsList MethodGet E-mail For Group Users and select the Name Property. 


 


Input Mapping:


Group Fully Qualified Name:  Put your AD Group Name (e.g. Finance)


User Provider Label:  K2


Note that the other input mappings don't actually limit the results so you'll need to provide a filter.


 


Filter Settings:


Name:  User domain name you want to check the group against (e.g. DENALLIX imkn)


 


Return Property


Name


List Options


Return a single item


Comparison Operator 


                <>


Second Variable


                Users name in the format of (DENALLIX imkn)


 


I tested this and it seems to work fine


 

Badge +2

Thanks Timkn,


how would you do the same in SmartForms and set a checkbox according to the result? I realized it would be better to do it in SmartForms instead of a line rule in the process.


 


Many thanks!


Joachim

Reply