Skip to content

Commit

Permalink
Add AD User Duplicates App
Browse files Browse the repository at this point in the history
  • Loading branch information
msheldont4e committed Apr 20, 2023
1 parent 2fa2f87 commit 2b8a6d0
Show file tree
Hide file tree
Showing 3 changed files with 952 additions and 0 deletions.
327 changes: 327 additions & 0 deletions ProgramData/Tools4ever/NIM/config/apps/ADUserDuplicates.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,327 @@
{
"name": "ADUserDuplicates",
"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": "AD 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": ""
},
"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": "ADUserDuplicates_DuplicateUsersByID",
"columns": [
{
"color": "",
"column_show": true,
"column_name": "employeeID",
"column_width": 218,
"display_name": "employeeID",
"data_type": 0,
"key": false,
"variable_name": ""
},
{
"color": "",
"column_show": true,
"column_name": "givenName",
"column_width": 194,
"display_name": "givenName",
"data_type": 0,
"key": false,
"variable_name": ""
},
{
"color": "",
"column_show": true,
"column_name": "sn",
"column_width": 251,
"display_name": "sn",
"data_type": 0,
"key": false,
"variable_name": ""
},
{
"color": "",
"column_show": true,
"column_name": "sAMAccountName",
"column_width": 300,
"display_name": "sAMAccountName",
"data_type": 0,
"key": false,
"variable_name": ""
},
{
"color": "",
"column_show": true,
"column_name": "mail",
"column_width": 304,
"display_name": "mail",
"data_type": 0,
"key": false,
"variable_name": ""
},
{
"color": "",
"column_show": true,
"column_name": "userPrincipalName",
"column_width": 387,
"display_name": "userPrincipalName",
"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 AD by ID",
"display_name": "AD Duplicate Users",
"image": "invoice.svg",
"sort": 1000,
"form_size": "large",
"actions_description": "",
"actions_wait": false,
"alignment": "",
"actions": [],
"cid": -1,
"fuid": "",
"margin": "4___",
"padding": "",
"shadow": "small",
"styles": "",
"styles_column": "",
"type": "empty"
},
"variables": [
{
"name": "selected_email",
"type": 0,
"cid": -1,
"initialize": false,
"stop_propagation": false,
"test_only": true,
"data_value": "testemail1",
"data_type": 0
},
{
"name": "selected_enabledState",
"type": 1,
"cid": -1,
"javascript": {
"javascript": "let result = '';\n\ntry {\n if(data['selected_enabled'] == '1')\n {\n \treturn 'Enabled' \n }\n \n} catch(e){}\n\nreturn result;"
}
},
{
"name": "new_enabledState",
"type": 1,
"cid": -1,
"javascript": {
"javascript": "let result = data['selected_enabled'];\n\ntry {\n if(data['Enabled'])\n {\n \treturn 1\n }\n else\n {\n \treturn 0\n }\n \n} catch(e){}\n\nreturn result;"
}
}
],
"name_generator": {
"name": "",
"delay": 2000,
"input_fields": [],
"output_fields": []
},
"nim_version": 1419
}
Loading

0 comments on commit 2b8a6d0

Please sign in to comment.