From 0cdf38d54ccbf7e8cc42cb2a96d14a67e460ec4b Mon Sep 17 00:00:00 2001 From: Mike Sheldon Date: Tue, 23 May 2023 07:19:51 -0800 Subject: [PATCH 1/2] Add Google User Correlation App --- .../Tools4ever/NIM/config/apps/GoogleUserCorrelation.json | 1 + .../NIM/config/filters/app_googleusercorrelation_listusers.json | 1 + 2 files changed, 2 insertions(+) create mode 100644 ProgramData/Tools4ever/NIM/config/apps/GoogleUserCorrelation.json create mode 100644 ProgramData/Tools4ever/NIM/config/filters/app_googleusercorrelation_listusers.json diff --git a/ProgramData/Tools4ever/NIM/config/apps/GoogleUserCorrelation.json b/ProgramData/Tools4ever/NIM/config/apps/GoogleUserCorrelation.json new file mode 100644 index 0000000..dc67b35 --- /dev/null +++ b/ProgramData/Tools4ever/NIM/config/apps/GoogleUserCorrelation.json @@ -0,0 +1 @@ +{"name":"GoogleUserCorrelation","forms":[{"name":"main","form":{"type":"rows","rows":[{"cols":[{"type":"column","width":2,"cell":{"type":"unit","unit":{"image":"link.svg","actions_description":"","actions_wait":false,"alignment":"","actions":[],"cid":35,"fuid":"","margin":"____","padding":"4___","shadow":"small","styles":"width:72px;margin: auto;display: block;","styles_column":"","type":"image"}}},{"type":"column","width":8,"cell":{"type":"unit","unit":{"text_value":"Google User Correlation","text_eval":{"javascript":""},"font_size":"","header":"h2","color":"","background_color":"","actions_description":"","actions_wait":false,"alignment":"","actions":[],"cid":37,"fuid":"","margin":"____","padding":"4___","shadow":"small","styles":"display: flex;\njustify-content: left;\nalign-items: center;\nheight: 100px;\nwidth: 100%;","styles_column":"","type":"static_text"}}},{"type":"column","width":2,"cell":{"type":"unit","unit":{"align_right":false,"button_text":"Dashboard","button_style":"dark","button_size":"small","background_solid":true,"disabled":{"javascript":""},"hide":{"javascript":""},"fit_column":false,"icon_left":"","icon_right":"","disable_form_invalid":false,"actions_description":"","actions_wait":false,"alignment":"right","actions":[{"app_name":"Dashboard","cid":416,"type":"Start app","trigger":"None"}],"cid":413,"fuid":"","margin":"44__","padding":"","shadow":"small","styles":"","styles_column":"","type":"button"}}}],"hide":{"javascript":""}},{"cols":[{"type":"column","width":12,"cell":{"type":"unit","unit":{"margin_left":"","margin_right":"","margin_top":"","margin_bottom":"","color":"","line_height":"","actions_description":"","actions_wait":false,"alignment":"","actions":[],"cid":170,"fuid":"","shadow":"small","styles":"","styles_column":"","type":"separator"}}}],"hide":{"javascript":""}},{"cols":[{"type":"column","width":8,"cell":{"type":"unit","unit":{"actions_description":"","actions_wait":false,"alignment":"","actions":[],"cid":419,"fuid":"","margin":"__4_","padding":"","shadow":"small","styles":"","styles_column":"","type":"table_grid","validator":{"required":false,"message":""},"dnd_grid":"","dark":false,"filter_columns":6,"filter_enabled":true,"heavy":true,"views":{"table_views":{"default":{"table_type":"filter","table_name":"App_GoogleUserCorrelation_ListUsers","columns":[{"color":"","column_show":false,"column_name":"id","column_width":70,"display_name":"id","data_type":0,"key":false,"variable_name":"selected_ID"},{"color":"","column_show":true,"column_name":"fullName","column_width":110,"display_name":"fullName","data_type":0,"key":false,"variable_name":"selected_fullName"},{"color":"","column_show":true,"column_name":"customSchemas_Tools4ever_ID","column_width":228,"display_name":"customSchemas_Tools4ever_ID","data_type":0,"key":false,"variable_name":"selected_employeeID"},{"color":"","column_show":true,"column_name":"customSchemas_Tools4ever_Type","column_width":241,"display_name":"customSchemas_Tools4ever_Type","data_type":0,"key":false,"variable_name":"selected_employeeType"},{"color":"","column_show":true,"column_name":"givenName","column_width":122,"display_name":"givenName","data_type":0,"key":false,"variable_name":""},{"color":"","column_show":true,"column_name":"familyName","column_width":126,"display_name":"familyName","data_type":0,"key":false,"variable_name":""},{"color":"","column_show":true,"column_name":"primaryEmail","column_width":132,"display_name":"primaryEmail","data_type":0,"key":false,"variable_name":""},{"color":"","column_show":false,"column_name":"calc_DisplayName","column_width":100,"display_name":"calc_DisplayName","data_type":0,"key":false,"variable_name":"selected_Name"}],"params":[],"variable_input":""}},"default_view":"default"},"selection_mode":"single","title_columns":6,"title_enabled":true,"title_styles":"font-weight:bold;","title_text":"User Accounts","height":"300px","top_height":"2em"}}},{"type":"column","width":4,"cell":{"type":"rows","rows":[{"cols":[{"type":"column","width":6,"cell":{"type":"unit","unit":{"height":"20px","actions_description":"","actions_wait":false,"alignment":"","actions":[],"cid":-1,"fuid":"","margin":"","padding":"","shadow":"small","styles":"","styles_column":"","type":"empty"}}},{"type":"column","width":6,"cell":{"type":"unit","unit":{"auto_complete":false,"auto_complete_delay":0,"auto_complete_display":"","auto_complete_list_display_columns":false,"disabled":{"javascript":""},"icon_left":"","icon_right":"","label_alignment":"right","label_mode":"above","label_text":"ID","label_font_size":"","number":false,"password":false,"password_toggle":false,"place_holder":"","variable":"new_employeeID","variable_input":"selected_employeeID","actions_description":"","actions_wait":false,"alignment":"","actions":[],"cid":451,"fuid":"","margin":"__3_","padding":"","xmargin":"","xpadding":"","shadow":"small","styles":"","styles_column":"","type":"input_text","validator":{"required":false,"message":""}}}}],"hide":{"javascript":""}},{"cols":[{"type":"column","width":6,"cell":{"type":"unit","unit":{"height":"20px","actions_description":"","actions_wait":false,"alignment":"","actions":[],"cid":-1,"fuid":"","margin":"","padding":"","shadow":"small","styles":"","styles_column":"","type":"empty"}}},{"type":"column","width":6,"cell":{"type":"unit","unit":{"auto_complete":false,"auto_complete_delay":0,"auto_complete_display":"","auto_complete_list_display_columns":false,"disabled":{"javascript":""},"icon_left":"","icon_right":"","label_alignment":"right","label_mode":"above","label_text":"Type","label_font_size":"","number":false,"password":false,"password_toggle":false,"place_holder":"","variable":"new_employeeType","variable_input":"selected_employeeType","actions_description":"","actions_wait":false,"alignment":"","actions":[],"cid":451,"fuid":"","margin":"__3_","padding":"","xmargin":"","xpadding":"","shadow":"small","styles":"","styles_column":"","type":"input_text","validator":{"required":false,"message":""}}}}],"hide":{"javascript":""}},{"cols":[{"type":"column","width":12,"cell":{"type":"unit","unit":{"align_right":false,"button_text":"Update","button_style":"success","button_size":"medium","background_solid":true,"disabled":{"javascript":""},"hide":{"javascript":""},"fit_column":false,"icon_left":"","icon_right":"","disable_form_invalid":false,"actions_description":"","actions_wait":true,"alignment":"right","actions":[{"system_name":"Google","function_name":"user_update","table_name":"users","description":"Update user [{selected_name}]","event_generate":false,"hide_protected_data":true,"cid":459,"type":"Target system function execution","trigger":"None","arguments":[{"name":"id","manual":false,"data_type":0,"value_spec":{"variable_name":"selected_ID","type":"variable"}},{"name":"addresses","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"aliases","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"archived","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"changePasswordAtNextLogin","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"customSchemas_Tools4ever_DeleteDate","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"customSchemas_Tools4ever_ID","manual":false,"data_type":0,"value_spec":{"variable_name":"new_employeeID","type":"variable"}},{"name":"customSchemas_Tools4ever_TestMV","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"customSchemas_Tools4ever_Type","manual":false,"data_type":0,"value_spec":{"variable_name":"new_employeeType","type":"variable"}},{"name":"emails","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"externalIds","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"familyName","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"gender_addressMeAs","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"gender_customGener","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"gender_type","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"givenName","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"hashFunction","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"ims","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"includeInGlobalAddressList","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"ipWhitelisted","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"keywords","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"languages","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"locations","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"notes_contentType","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"notes_value","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"organizations","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"orgUnitPath","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"password","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"phones","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"posixAccounts","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"primaryEmail","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"recoveryEmail","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"recoveryPhone","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"relations","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"sshPublicKeys","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"suspended","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"TestMV","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"websites","manual":false,"data_type":0,"value_spec":{"type":"none"}}]},{"cid":460,"type":"Restart app","trigger":"None"}],"cid":456,"fuid":"","margin":"","padding":"","shadow":"small","styles":"","styles_column":"","type":"button"}}}],"hide":{"javascript":""}}]}}],"hide":{"javascript":""}}]},"form_props":{"form_function":"general","actions_description":"","actions_wait":false,"alignment":"","actions":[],"cid":-1,"fuid":"","shadow":"none","styles":"","styles_column":"","type":"empty"}}],"props":{"description":"Manage Identifiers for AD Users","display_name":"AD User Correlation","image":"link.svg","sort":1000,"form_size":"large","onboarding_app":false,"actions_description":"","actions_wait":false,"alignment":"","actions":[],"cid":-1,"fuid":"","margin":"4___","padding":"","shadow":"small","styles":"","styles_column":"","type":"empty"},"variables":[],"name_generator":{"name":"","delay":2000,"input_fields":[],"output_fields":[]},"nim_version":1434} \ No newline at end of file diff --git a/ProgramData/Tools4ever/NIM/config/filters/app_googleusercorrelation_listusers.json b/ProgramData/Tools4ever/NIM/config/filters/app_googleusercorrelation_listusers.json new file mode 100644 index 0000000..b004e1c --- /dev/null +++ b/ProgramData/Tools4ever/NIM/config/filters/app_googleusercorrelation_listusers.json @@ -0,0 +1 @@ +{"filter_name":"App_GoogleUserCorrelation_ListUsers","filter_name_parent":"","filter_items":[{"system_name":"Google","col_name":"users","colrefname":"users","type":"start","blocked":false,"id":"3b0a0e91-305b-4bea-86be-b4a60566de59","indent":0,"inherited":false,"enabled":true,"index":0,"child_count":0}],"filter_columns":[{"id":"users.id","order":1,"name":"users.id","display_name":"id","show":true,"field_name":"id","colrefname":"users","source":"data"},{"id":"users.fullName","order":2,"name":"users.fullName","display_name":"fullName","show":true,"field_name":"fullName","colrefname":"users","source":"data"},{"id":"users.customSchemas_Tools4ever_ID","order":3,"name":"users.customSchemas_Tools4ever_ID","display_name":"customSchemas_Tools4ever_ID","show":true,"field_name":"customSchemas_Tools4ever_ID","colrefname":"users","source":"data"},{"id":"users.customSchemas_Tools4ever_Type","order":4,"name":"users.customSchemas_Tools4ever_Type","display_name":"customSchemas_Tools4ever_Type","show":true,"field_name":"customSchemas_Tools4ever_Type","colrefname":"users","source":"data"},{"id":"users.givenName","order":5,"name":"users.givenName","display_name":"givenName","show":true,"field_name":"givenName","colrefname":"users","source":"data"},{"id":"users.familyName","order":6,"name":"users.familyName","display_name":"familyName","show":true,"field_name":"familyName","colrefname":"users","source":"data"},{"id":"users.primaryEmail","order":7,"name":"users.primaryEmail","display_name":"primaryEmail","show":true,"field_name":"primaryEmail","colrefname":"users","source":"data"},{"id":"calc_DisplayName","order":8,"name":"calc_DisplayName","display_name":"calc_DisplayName","show":true,"javascript":"return `${users['fullName']} (${users['customSchemas_Tools4ever_ID']}) - ${users['primaryEmail']}`","source":"script"}],"sort_columns":[],"group":{"enabled":false,"count":1,"field":""},"params":[],"appends":[],"exclude":{"enabled":false,"field_name":""},"lookups":[]} \ No newline at end of file From 4da1733b6d02e98892e510385edfd3fa69fc9a37 Mon Sep 17 00:00:00 2001 From: Mike Sheldon Date: Tue, 23 May 2023 07:21:50 -0800 Subject: [PATCH 2/2] Add Google User Duplicates, Fix Correlation App name --- .../Tools4ever/NIM/config/apps/GoogleUserCorrelation.json | 2 +- .../Tools4ever/NIM/config/apps/GoogleUserDuplicates.json | 1 + .../NIM/config/filters/app_googleuserduplicates_listusers.json | 1 + .../config/queries/googleuserduplicates_duplicateusersbyid.json | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 ProgramData/Tools4ever/NIM/config/apps/GoogleUserDuplicates.json create mode 100644 ProgramData/Tools4ever/NIM/config/filters/app_googleuserduplicates_listusers.json create mode 100644 ProgramData/Tools4ever/NIM/config/queries/googleuserduplicates_duplicateusersbyid.json diff --git a/ProgramData/Tools4ever/NIM/config/apps/GoogleUserCorrelation.json b/ProgramData/Tools4ever/NIM/config/apps/GoogleUserCorrelation.json index dc67b35..62c6337 100644 --- a/ProgramData/Tools4ever/NIM/config/apps/GoogleUserCorrelation.json +++ b/ProgramData/Tools4ever/NIM/config/apps/GoogleUserCorrelation.json @@ -1 +1 @@ -{"name":"GoogleUserCorrelation","forms":[{"name":"main","form":{"type":"rows","rows":[{"cols":[{"type":"column","width":2,"cell":{"type":"unit","unit":{"image":"link.svg","actions_description":"","actions_wait":false,"alignment":"","actions":[],"cid":35,"fuid":"","margin":"____","padding":"4___","shadow":"small","styles":"width:72px;margin: auto;display: block;","styles_column":"","type":"image"}}},{"type":"column","width":8,"cell":{"type":"unit","unit":{"text_value":"Google User Correlation","text_eval":{"javascript":""},"font_size":"","header":"h2","color":"","background_color":"","actions_description":"","actions_wait":false,"alignment":"","actions":[],"cid":37,"fuid":"","margin":"____","padding":"4___","shadow":"small","styles":"display: flex;\njustify-content: left;\nalign-items: center;\nheight: 100px;\nwidth: 100%;","styles_column":"","type":"static_text"}}},{"type":"column","width":2,"cell":{"type":"unit","unit":{"align_right":false,"button_text":"Dashboard","button_style":"dark","button_size":"small","background_solid":true,"disabled":{"javascript":""},"hide":{"javascript":""},"fit_column":false,"icon_left":"","icon_right":"","disable_form_invalid":false,"actions_description":"","actions_wait":false,"alignment":"right","actions":[{"app_name":"Dashboard","cid":416,"type":"Start app","trigger":"None"}],"cid":413,"fuid":"","margin":"44__","padding":"","shadow":"small","styles":"","styles_column":"","type":"button"}}}],"hide":{"javascript":""}},{"cols":[{"type":"column","width":12,"cell":{"type":"unit","unit":{"margin_left":"","margin_right":"","margin_top":"","margin_bottom":"","color":"","line_height":"","actions_description":"","actions_wait":false,"alignment":"","actions":[],"cid":170,"fuid":"","shadow":"small","styles":"","styles_column":"","type":"separator"}}}],"hide":{"javascript":""}},{"cols":[{"type":"column","width":8,"cell":{"type":"unit","unit":{"actions_description":"","actions_wait":false,"alignment":"","actions":[],"cid":419,"fuid":"","margin":"__4_","padding":"","shadow":"small","styles":"","styles_column":"","type":"table_grid","validator":{"required":false,"message":""},"dnd_grid":"","dark":false,"filter_columns":6,"filter_enabled":true,"heavy":true,"views":{"table_views":{"default":{"table_type":"filter","table_name":"App_GoogleUserCorrelation_ListUsers","columns":[{"color":"","column_show":false,"column_name":"id","column_width":70,"display_name":"id","data_type":0,"key":false,"variable_name":"selected_ID"},{"color":"","column_show":true,"column_name":"fullName","column_width":110,"display_name":"fullName","data_type":0,"key":false,"variable_name":"selected_fullName"},{"color":"","column_show":true,"column_name":"customSchemas_Tools4ever_ID","column_width":228,"display_name":"customSchemas_Tools4ever_ID","data_type":0,"key":false,"variable_name":"selected_employeeID"},{"color":"","column_show":true,"column_name":"customSchemas_Tools4ever_Type","column_width":241,"display_name":"customSchemas_Tools4ever_Type","data_type":0,"key":false,"variable_name":"selected_employeeType"},{"color":"","column_show":true,"column_name":"givenName","column_width":122,"display_name":"givenName","data_type":0,"key":false,"variable_name":""},{"color":"","column_show":true,"column_name":"familyName","column_width":126,"display_name":"familyName","data_type":0,"key":false,"variable_name":""},{"color":"","column_show":true,"column_name":"primaryEmail","column_width":132,"display_name":"primaryEmail","data_type":0,"key":false,"variable_name":""},{"color":"","column_show":false,"column_name":"calc_DisplayName","column_width":100,"display_name":"calc_DisplayName","data_type":0,"key":false,"variable_name":"selected_Name"}],"params":[],"variable_input":""}},"default_view":"default"},"selection_mode":"single","title_columns":6,"title_enabled":true,"title_styles":"font-weight:bold;","title_text":"User Accounts","height":"300px","top_height":"2em"}}},{"type":"column","width":4,"cell":{"type":"rows","rows":[{"cols":[{"type":"column","width":6,"cell":{"type":"unit","unit":{"height":"20px","actions_description":"","actions_wait":false,"alignment":"","actions":[],"cid":-1,"fuid":"","margin":"","padding":"","shadow":"small","styles":"","styles_column":"","type":"empty"}}},{"type":"column","width":6,"cell":{"type":"unit","unit":{"auto_complete":false,"auto_complete_delay":0,"auto_complete_display":"","auto_complete_list_display_columns":false,"disabled":{"javascript":""},"icon_left":"","icon_right":"","label_alignment":"right","label_mode":"above","label_text":"ID","label_font_size":"","number":false,"password":false,"password_toggle":false,"place_holder":"","variable":"new_employeeID","variable_input":"selected_employeeID","actions_description":"","actions_wait":false,"alignment":"","actions":[],"cid":451,"fuid":"","margin":"__3_","padding":"","xmargin":"","xpadding":"","shadow":"small","styles":"","styles_column":"","type":"input_text","validator":{"required":false,"message":""}}}}],"hide":{"javascript":""}},{"cols":[{"type":"column","width":6,"cell":{"type":"unit","unit":{"height":"20px","actions_description":"","actions_wait":false,"alignment":"","actions":[],"cid":-1,"fuid":"","margin":"","padding":"","shadow":"small","styles":"","styles_column":"","type":"empty"}}},{"type":"column","width":6,"cell":{"type":"unit","unit":{"auto_complete":false,"auto_complete_delay":0,"auto_complete_display":"","auto_complete_list_display_columns":false,"disabled":{"javascript":""},"icon_left":"","icon_right":"","label_alignment":"right","label_mode":"above","label_text":"Type","label_font_size":"","number":false,"password":false,"password_toggle":false,"place_holder":"","variable":"new_employeeType","variable_input":"selected_employeeType","actions_description":"","actions_wait":false,"alignment":"","actions":[],"cid":451,"fuid":"","margin":"__3_","padding":"","xmargin":"","xpadding":"","shadow":"small","styles":"","styles_column":"","type":"input_text","validator":{"required":false,"message":""}}}}],"hide":{"javascript":""}},{"cols":[{"type":"column","width":12,"cell":{"type":"unit","unit":{"align_right":false,"button_text":"Update","button_style":"success","button_size":"medium","background_solid":true,"disabled":{"javascript":""},"hide":{"javascript":""},"fit_column":false,"icon_left":"","icon_right":"","disable_form_invalid":false,"actions_description":"","actions_wait":true,"alignment":"right","actions":[{"system_name":"Google","function_name":"user_update","table_name":"users","description":"Update user [{selected_name}]","event_generate":false,"hide_protected_data":true,"cid":459,"type":"Target system function execution","trigger":"None","arguments":[{"name":"id","manual":false,"data_type":0,"value_spec":{"variable_name":"selected_ID","type":"variable"}},{"name":"addresses","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"aliases","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"archived","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"changePasswordAtNextLogin","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"customSchemas_Tools4ever_DeleteDate","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"customSchemas_Tools4ever_ID","manual":false,"data_type":0,"value_spec":{"variable_name":"new_employeeID","type":"variable"}},{"name":"customSchemas_Tools4ever_TestMV","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"customSchemas_Tools4ever_Type","manual":false,"data_type":0,"value_spec":{"variable_name":"new_employeeType","type":"variable"}},{"name":"emails","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"externalIds","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"familyName","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"gender_addressMeAs","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"gender_customGener","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"gender_type","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"givenName","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"hashFunction","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"ims","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"includeInGlobalAddressList","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"ipWhitelisted","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"keywords","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"languages","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"locations","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"notes_contentType","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"notes_value","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"organizations","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"orgUnitPath","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"password","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"phones","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"posixAccounts","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"primaryEmail","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"recoveryEmail","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"recoveryPhone","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"relations","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"sshPublicKeys","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"suspended","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"TestMV","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"websites","manual":false,"data_type":0,"value_spec":{"type":"none"}}]},{"cid":460,"type":"Restart app","trigger":"None"}],"cid":456,"fuid":"","margin":"","padding":"","shadow":"small","styles":"","styles_column":"","type":"button"}}}],"hide":{"javascript":""}}]}}],"hide":{"javascript":""}}]},"form_props":{"form_function":"general","actions_description":"","actions_wait":false,"alignment":"","actions":[],"cid":-1,"fuid":"","shadow":"none","styles":"","styles_column":"","type":"empty"}}],"props":{"description":"Manage Identifiers for AD Users","display_name":"AD User Correlation","image":"link.svg","sort":1000,"form_size":"large","onboarding_app":false,"actions_description":"","actions_wait":false,"alignment":"","actions":[],"cid":-1,"fuid":"","margin":"4___","padding":"","shadow":"small","styles":"","styles_column":"","type":"empty"},"variables":[],"name_generator":{"name":"","delay":2000,"input_fields":[],"output_fields":[]},"nim_version":1434} \ No newline at end of file +{"name":"GoogleUserCorrelation","forms":[{"name":"main","form":{"type":"rows","rows":[{"cols":[{"type":"column","width":2,"cell":{"type":"unit","unit":{"image":"link.svg","actions_description":"","actions_wait":false,"alignment":"","actions":[],"cid":35,"fuid":"","margin":"____","padding":"4___","shadow":"small","styles":"width:72px;margin: auto;display: block;","styles_column":"","type":"image"}}},{"type":"column","width":8,"cell":{"type":"unit","unit":{"text_value":"Google User Correlation","text_eval":{"javascript":""},"font_size":"","header":"h2","color":"","background_color":"","actions_description":"","actions_wait":false,"alignment":"","actions":[],"cid":37,"fuid":"","margin":"____","padding":"4___","shadow":"small","styles":"display: flex;\njustify-content: left;\nalign-items: center;\nheight: 100px;\nwidth: 100%;","styles_column":"","type":"static_text"}}},{"type":"column","width":2,"cell":{"type":"unit","unit":{"align_right":false,"button_text":"Dashboard","button_style":"dark","button_size":"small","background_solid":true,"disabled":{"javascript":""},"hide":{"javascript":""},"fit_column":false,"icon_left":"","icon_right":"","disable_form_invalid":false,"actions_description":"","actions_wait":false,"alignment":"right","actions":[{"app_name":"Dashboard","cid":416,"type":"Start app","trigger":"None"}],"cid":413,"fuid":"","margin":"44__","padding":"","shadow":"small","styles":"","styles_column":"","type":"button"}}}],"hide":{"javascript":""}},{"cols":[{"type":"column","width":12,"cell":{"type":"unit","unit":{"margin_left":"","margin_right":"","margin_top":"","margin_bottom":"","color":"","line_height":"","actions_description":"","actions_wait":false,"alignment":"","actions":[],"cid":170,"fuid":"","shadow":"small","styles":"","styles_column":"","type":"separator"}}}],"hide":{"javascript":""}},{"cols":[{"type":"column","width":8,"cell":{"type":"unit","unit":{"actions_description":"","actions_wait":false,"alignment":"","actions":[],"cid":419,"fuid":"","margin":"__4_","padding":"","shadow":"small","styles":"","styles_column":"","type":"table_grid","validator":{"required":false,"message":""},"dnd_grid":"","dark":false,"filter_columns":6,"filter_enabled":true,"heavy":true,"views":{"table_views":{"default":{"table_type":"filter","table_name":"App_GoogleUserCorrelation_ListUsers","columns":[{"color":"","column_show":false,"column_name":"id","column_width":70,"display_name":"id","data_type":0,"key":false,"variable_name":"selected_ID"},{"color":"","column_show":true,"column_name":"fullName","column_width":110,"display_name":"fullName","data_type":0,"key":false,"variable_name":"selected_fullName"},{"color":"","column_show":true,"column_name":"customSchemas_Tools4ever_ID","column_width":228,"display_name":"customSchemas_Tools4ever_ID","data_type":0,"key":false,"variable_name":"selected_employeeID"},{"color":"","column_show":true,"column_name":"customSchemas_Tools4ever_Type","column_width":241,"display_name":"customSchemas_Tools4ever_Type","data_type":0,"key":false,"variable_name":"selected_employeeType"},{"color":"","column_show":true,"column_name":"givenName","column_width":122,"display_name":"givenName","data_type":0,"key":false,"variable_name":""},{"color":"","column_show":true,"column_name":"familyName","column_width":126,"display_name":"familyName","data_type":0,"key":false,"variable_name":""},{"color":"","column_show":true,"column_name":"primaryEmail","column_width":132,"display_name":"primaryEmail","data_type":0,"key":false,"variable_name":""},{"color":"","column_show":false,"column_name":"calc_DisplayName","column_width":100,"display_name":"calc_DisplayName","data_type":0,"key":false,"variable_name":"selected_Name"}],"params":[],"variable_input":""}},"default_view":"default"},"selection_mode":"single","title_columns":6,"title_enabled":true,"title_styles":"font-weight:bold;","title_text":"User Accounts","height":"300px","top_height":"2em"}}},{"type":"column","width":4,"cell":{"type":"rows","rows":[{"cols":[{"type":"column","width":6,"cell":{"type":"unit","unit":{"height":"20px","actions_description":"","actions_wait":false,"alignment":"","actions":[],"cid":-1,"fuid":"","margin":"","padding":"","shadow":"small","styles":"","styles_column":"","type":"empty"}}},{"type":"column","width":6,"cell":{"type":"unit","unit":{"auto_complete":false,"auto_complete_delay":0,"auto_complete_display":"","auto_complete_list_display_columns":false,"disabled":{"javascript":""},"icon_left":"","icon_right":"","label_alignment":"right","label_mode":"above","label_text":"ID","label_font_size":"","number":false,"password":false,"password_toggle":false,"place_holder":"","variable":"new_employeeID","variable_input":"selected_employeeID","actions_description":"","actions_wait":false,"alignment":"","actions":[],"cid":451,"fuid":"","margin":"__3_","padding":"","xmargin":"","xpadding":"","shadow":"small","styles":"","styles_column":"","type":"input_text","validator":{"required":false,"message":""}}}}],"hide":{"javascript":""}},{"cols":[{"type":"column","width":6,"cell":{"type":"unit","unit":{"height":"20px","actions_description":"","actions_wait":false,"alignment":"","actions":[],"cid":-1,"fuid":"","margin":"","padding":"","shadow":"small","styles":"","styles_column":"","type":"empty"}}},{"type":"column","width":6,"cell":{"type":"unit","unit":{"auto_complete":false,"auto_complete_delay":0,"auto_complete_display":"","auto_complete_list_display_columns":false,"disabled":{"javascript":""},"icon_left":"","icon_right":"","label_alignment":"right","label_mode":"above","label_text":"Type","label_font_size":"","number":false,"password":false,"password_toggle":false,"place_holder":"","variable":"new_employeeType","variable_input":"selected_employeeType","actions_description":"","actions_wait":false,"alignment":"","actions":[],"cid":451,"fuid":"","margin":"__3_","padding":"","xmargin":"","xpadding":"","shadow":"small","styles":"","styles_column":"","type":"input_text","validator":{"required":false,"message":""}}}}],"hide":{"javascript":""}},{"cols":[{"type":"column","width":12,"cell":{"type":"unit","unit":{"align_right":false,"button_text":"Update","button_style":"success","button_size":"medium","background_solid":true,"disabled":{"javascript":""},"hide":{"javascript":""},"fit_column":false,"icon_left":"","icon_right":"","disable_form_invalid":false,"actions_description":"","actions_wait":true,"alignment":"right","actions":[{"system_name":"Google","function_name":"user_update","table_name":"users","description":"Update user [{selected_name}]","event_generate":false,"hide_protected_data":true,"cid":459,"type":"Target system function execution","trigger":"None","arguments":[{"name":"id","manual":false,"data_type":0,"value_spec":{"variable_name":"selected_ID","type":"variable"}},{"name":"addresses","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"aliases","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"archived","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"changePasswordAtNextLogin","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"customSchemas_Tools4ever_DeleteDate","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"customSchemas_Tools4ever_ID","manual":false,"data_type":0,"value_spec":{"variable_name":"new_employeeID","type":"variable"}},{"name":"customSchemas_Tools4ever_TestMV","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"customSchemas_Tools4ever_Type","manual":false,"data_type":0,"value_spec":{"variable_name":"new_employeeType","type":"variable"}},{"name":"emails","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"externalIds","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"familyName","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"gender_addressMeAs","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"gender_customGener","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"gender_type","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"givenName","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"hashFunction","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"ims","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"includeInGlobalAddressList","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"ipWhitelisted","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"keywords","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"languages","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"locations","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"notes_contentType","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"notes_value","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"organizations","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"orgUnitPath","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"password","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"phones","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"posixAccounts","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"primaryEmail","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"recoveryEmail","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"recoveryPhone","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"relations","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"sshPublicKeys","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"suspended","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"TestMV","manual":false,"data_type":0,"value_spec":{"type":"none"}},{"name":"websites","manual":false,"data_type":0,"value_spec":{"type":"none"}}]},{"cid":460,"type":"Restart app","trigger":"None"}],"cid":456,"fuid":"","margin":"","padding":"","shadow":"small","styles":"","styles_column":"","type":"button"}}}],"hide":{"javascript":""}}]}}],"hide":{"javascript":""}}]},"form_props":{"form_function":"general","actions_description":"","actions_wait":false,"alignment":"","actions":[],"cid":-1,"fuid":"","shadow":"none","styles":"","styles_column":"","type":"empty"}}],"props":{"description":"Manage Identifiers for Google Users","display_name":"Google User Correlation","image":"link.svg","sort":1000,"form_size":"large","onboarding_app":false,"actions_description":"","actions_wait":false,"alignment":"","actions":[],"cid":-1,"fuid":"","margin":"4___","padding":"","shadow":"small","styles":"","styles_column":"","type":"empty"},"variables":[],"name_generator":{"name":"","delay":2000,"input_fields":[],"output_fields":[]},"nim_version":1434} \ No newline at end of file diff --git a/ProgramData/Tools4ever/NIM/config/apps/GoogleUserDuplicates.json b/ProgramData/Tools4ever/NIM/config/apps/GoogleUserDuplicates.json new file mode 100644 index 0000000..5f297d5 --- /dev/null +++ b/ProgramData/Tools4ever/NIM/config/apps/GoogleUserDuplicates.json @@ -0,0 +1 @@ +{"name":"GoogleUserDuplicates","forms":[{"name":"main","form":{"type":"rows","rows":[{"cols":[{"type":"column","width":2,"cell":{"type":"unit","unit":{"image":"invoice.svg","actions_description":"","actions_wait":false,"alignment":"","actions":[],"cid":35,"fuid":"","margin":"____","padding":"4___","shadow":"small","styles":"width:72px;margin: auto;display: block;","styles_column":"","type":"image"}}},{"type":"column","width":8,"cell":{"type":"unit","unit":{"text_value":"Google User Duplicates","text_eval":{"javascript":""},"font_size":"","header":"h2","color":"","background_color":"","actions_description":"","actions_wait":false,"alignment":"","actions":[],"cid":37,"fuid":"","margin":"____","padding":"4___","shadow":"small","styles":"display: flex;\njustify-content: left;\nalign-items: center;\nheight: 100px;\nwidth: 100%;","styles_column":"","type":"static_text"}}},{"type":"column","width":2,"cell":{"type":"unit","unit":{"align_right":false,"button_text":"Dashboard","button_style":"dark","button_size":"small","background_solid":true,"disabled":{"javascript":""},"hide":{"javascript":""},"fit_column":false,"icon_left":"","icon_right":"","disable_form_invalid":false,"actions_description":"","actions_wait":false,"alignment":"right","actions":[{"app_name":"Dashboard","cid":416,"type":"Start app","trigger":"None"}],"cid":413,"fuid":"","margin":"44__","padding":"","shadow":"small","styles":"","styles_column":"","type":"button"}}}],"hide":{"javascript":""}},{"cols":[{"type":"column","width":12,"cell":{"type":"unit","unit":{"margin_left":"","margin_right":"","margin_top":"","margin_bottom":"","color":"","line_height":"","actions_description":"","actions_wait":false,"alignment":"","actions":[],"cid":170,"fuid":"","shadow":"small","styles":"","styles_column":"","type":"separator"}}}],"hide":{"javascript":""}},{"cols":[{"type":"column","width":12,"cell":{"type":"unit","unit":{"actions_description":"","actions_wait":false,"alignment":"","actions":[],"cid":419,"fuid":"","margin":"__4_","padding":"","shadow":"small","styles":"","styles_column":"","type":"table_grid","validator":{"required":true,"message":""},"dnd_grid":"","dark":false,"filter_columns":6,"filter_enabled":false,"heavy":true,"views":{"table_views":{"default":{"table_type":"query","table_name":"GoogleUserDuplicates_DuplicateUsersByID","columns":[{"color":"","column_show":true,"column_name":"customSchemas_Tools4ever_ID","column_width":228,"display_name":"customSchemas_Tools4ever_ID","data_type":0,"key":false,"variable_name":""},{"color":"","column_show":true,"column_name":"customSchemas_Tools4ever_Type","column_width":272,"display_name":"customSchemas_Tools4ever_Type","data_type":0,"key":false,"variable_name":""},{"color":"","column_show":true,"column_name":"givenName","column_width":226,"display_name":"givenName","data_type":0,"key":false,"variable_name":""},{"color":"","column_show":true,"column_name":"familyName","column_width":219,"display_name":"familyName","data_type":0,"key":false,"variable_name":""},{"color":"","column_show":true,"column_name":"primaryEmail","column_width":455,"display_name":"primaryEmail","data_type":0,"key":false,"variable_name":""}],"params":[],"variable_input":""}},"default_view":"default"},"selection_mode":"single","title_columns":6,"title_enabled":true,"title_styles":"font-weight:bold;","title_text":"Duplicate Users by ID","height":"600px","top_height":"2em"}}}],"hide":{"javascript":""}}]},"form_props":{"form_function":"general","actions_description":"","actions_wait":false,"alignment":"","actions":[],"cid":-1,"fuid":"","shadow":"none","styles":"","styles_column":"","type":"empty"}}],"props":{"description":"Report on Duplicate Users in Google by ID","display_name":"Google Duplicate Users","image":"invoice.svg","sort":1000,"form_size":"large","onboarding_app":false,"actions_description":"","actions_wait":false,"alignment":"","actions":[],"cid":-1,"fuid":"","margin":"4___","padding":"","shadow":"small","styles":"","styles_column":"","type":"empty"},"variables":[],"name_generator":{"name":"","delay":2000,"input_fields":[],"output_fields":[]},"nim_version":1434} \ No newline at end of file diff --git a/ProgramData/Tools4ever/NIM/config/filters/app_googleuserduplicates_listusers.json b/ProgramData/Tools4ever/NIM/config/filters/app_googleuserduplicates_listusers.json new file mode 100644 index 0000000..9cb11c3 --- /dev/null +++ b/ProgramData/Tools4ever/NIM/config/filters/app_googleuserduplicates_listusers.json @@ -0,0 +1 @@ +{"filter_name":"App_GoogleUserDuplicates_ListUsers","filter_name_parent":"","filter_items":[{"system_name":"Google","col_name":"users","colrefname":"users","type":"start","blocked":false,"id":"a16648df-7b24-4f39-a098-84d5db2abd2f","indent":0,"inherited":false,"enabled":true,"index":0,"child_count":0}],"filter_columns":[{"id":"users.id","order":1,"name":"users.id","display_name":"id","show":true,"field_name":"id","colrefname":"users","source":"data"},{"id":"users.primaryEmail","order":2,"name":"users.primaryEmail","display_name":"primaryEmail","show":true,"field_name":"primaryEmail","colrefname":"users","source":"data"},{"id":"users.fullName","order":3,"name":"users.fullName","display_name":"fullName","show":true,"field_name":"fullName","colrefname":"users","source":"data"},{"id":"users.familyName","order":4,"name":"users.familyName","display_name":"familyName","show":true,"field_name":"familyName","colrefname":"users","source":"data"},{"id":"users.givenName","order":5,"name":"users.givenName","display_name":"givenName","show":true,"field_name":"givenName","colrefname":"users","source":"data"},{"id":"users.customSchemas_Tools4ever_ID","order":6,"name":"users.customSchemas_Tools4ever_ID","display_name":"customSchemas_Tools4ever_ID","show":true,"field_name":"customSchemas_Tools4ever_ID","colrefname":"users","source":"data"},{"id":"users.customSchemas_Tools4ever_Type","order":7,"name":"users.customSchemas_Tools4ever_Type","display_name":"customSchemas_Tools4ever_Type","show":true,"field_name":"customSchemas_Tools4ever_Type","colrefname":"users","source":"data"}],"sort_columns":[],"group":{"enabled":false,"count":1,"field":""},"params":[],"appends":[],"exclude":{"enabled":false,"field_name":""},"lookups":[]} \ No newline at end of file diff --git a/ProgramData/Tools4ever/NIM/config/queries/googleuserduplicates_duplicateusersbyid.json b/ProgramData/Tools4ever/NIM/config/queries/googleuserduplicates_duplicateusersbyid.json new file mode 100644 index 0000000..4896581 --- /dev/null +++ b/ProgramData/Tools4ever/NIM/config/queries/googleuserduplicates_duplicateusersbyid.json @@ -0,0 +1 @@ +{"name":"GoogleUserDuplicates_DuplicateUsersByID","query":"SELECT customSchemas_Tools4ever_ID, customSchemas_Tools4ever_Type, givenName, familyName, primaryEmail\nFROM f_App_GoogleUserDuplicates_ListUsers\nWHERE customSchemas_Tools4ever_ID IN (\n SELECT customSchemas_Tools4ever_ID\n FROM f_App_GoogleUserDuplicates_ListUsers\n WHERE length(customSchemas_Tools4ever_ID) > 0\n GROUP BY customSchemas_Tools4ever_ID\n HAVING COUNT(*) > 1\n )\nORDER BY customSchemas_Tools4ever_ID","params":[],"columns":[{"name":"customSchemas_Tools4ever_ID","type":0},{"name":"customSchemas_Tools4ever_Type","type":0},{"name":"givenName","type":0},{"name":"familyName","type":0},{"name":"primaryEmail","type":0}]} \ No newline at end of file