<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z00008LUkwLCATOkta Identity EngineWorkflowsAnswered2022-11-11T20:30:06.000Z2022-11-10T22:59:26.000Z2022-11-11T20:30:06.000Z
When a user is created, traverse a table and add user to group

User Created Trigger (Done)

Read User Info (Done)

Search Group Table by Department Name (Done)

Was the department found

Yes: Connect to Table with Department Name

Read a line

Search Group Table

Add user to group from table

EOF

No: Read next line

Yes: end

No: Return not found error

 


  • OK, I figured out how to get info from a table and pass to child flow. Next question, is there a way to make the table that I want to open be dynamic?

  • TimL.58332 (Workflows)

    @User15976987613926449178 (Customer)​ 

     

    Sure. There is an option to provide the table ID at runtime.

     

    When you open a table up in the GUI the URL will contain the tables ID (in bold)

     

    https://tlaborninc.workflows.okta.com/app/folders/10222/tables/558aeab6-e15d-4da6-a034-cd0acd466379

     

    You can then store those ID"s and have some logic to return them if the criteria is met. I'll show an example using a lookup table.

     

    Setup:

    Create 2 tables with the same columns (department, region) were used. For table 1 I did sales,NA and for table 2 I did sales,SA

     

    I then took the Table ID's and populated the lookup table in the example screenshot below. Once setup & tested I returned the expected results from each table by adjusting the "assign" card from 1 to 2.

     

    image 

     

     

     

    Expand Post
This question is closed.
Loading
When a user is created, traverse a table and add user to group