Report filtering users by account expiration range. Supports optional filtering on userAccountControl flags and employeeType, as well as before and after time ranges relative to the present.
This report requires the AD Users Base report.
{ "Data": [ { "$type": "SoftwareIDM.ReportingModule.Models.Report, SoftwareIDM.ReportingModule", "Id": "362ae9b1-4883-4cbf-b6a2-b571ef121a51", "Name": "Account Expiration", "UserId": null, "UserProfile": false, "Tags": null, "Roles": null, "CacheExpiration": "12:00:00", "Description": "Report filtering users by account expiration range. Supports optional filtering on userAccountControl flags and employeeType, as well as before and after time ranges relative to the present.", "Parameters": [ { "$type": "SoftwareIDM.ReportingModule.Models.SelectReportParameter, SoftwareIDM.ReportingModule", "ValueChoices": [ "PASSWD_NOTREQD", "PASSWD_CANT_CHANGE", "ACCOUNTDISABLE", "NORMAL_ACCOUNT", "INTERDOMAIN_TRUST_ACCOUNT", "DONT_EXPIRE_PASSWORD", "SMARTCARD_REQUIRED", "TRUSTED_FOR_DELEGATION", "PASSWORD_EXPIRED", "*" ], "Name": "Flag", "Description": "", "Required": false, "Validation": "", "DefaultValue": "" }, { "$type": "SoftwareIDM.ReportingModule.Models.SelectReportParameter, SoftwareIDM.ReportingModule", "ValueChoices": [ "A", "C", "SVC", "*" ], "Name": "Employee Type", "Description": "", "Required": true, "Validation": "", "DefaultValue": "" }, { "$type": "SoftwareIDM.ReportingModule.Models.TextReportParameter, SoftwareIDM.ReportingModule", "Name": "Expires Before", "Description": "Enter 'Never', a positive timespan for future expiration '365.00:00:00', or a negative timespan for already expired '-30.00:00:00'", "Required": false, "Validation": "", "DefaultValue": "Never" }, { "$type": "SoftwareIDM.ReportingModule.Models.TextReportParameter, SoftwareIDM.ReportingModule", "Name": "Expires After", "Description": "A positive timespan for future expiration '365.00:00:00', or a negative timespan for already expired '-30.00:00:00'", "Required": false, "Validation": "TimeSpan", "DefaultValue": "0.00:00:00" } ], "DataSets": [], "ReportSets": [ { "$type": "SoftwareIDM.ReportingModule.Models.ReportData, SoftwareIDM.ReportingModule", "Name": "AD", "Report": "cb5036bf-5ee6-43b0-b6ee-9fba04c3ea3b" } ], "Relations": [], "FieldProjections": [ { "$type": "SoftwareIDM.ReportingModule.Models.Projection, SoftwareIDM.ReportingModule", "Name": "DN", "RelationName": "", "RelationSide": null, "ValueRule": "$\"{TimeTraveler(Id)}|{DN}\"" }, { "$type": "SoftwareIDM.ReportingModule.Models.Projection, SoftwareIDM.ReportingModule", "Name": "EmployeeID", "RelationName": "", "RelationSide": null, "ValueRule": "employeeID" }, { "$type": "SoftwareIDM.ReportingModule.Models.Projection, SoftwareIDM.ReportingModule", "Name": "EmployeeType", "RelationName": "", "RelationSide": null, "ValueRule": "employeeType" }, { "$type": "SoftwareIDM.ReportingModule.Models.Projection, SoftwareIDM.ReportingModule", "Name": "DisplayName", "RelationName": "", "RelationSide": null, "ValueRule": "displayName" }, { "$type": "SoftwareIDM.ReportingModule.Models.Projection, SoftwareIDM.ReportingModule", "Name": "AccountName", "RelationName": "", "RelationSide": null, "ValueRule": "sAMAccountName" }, { "$type": "SoftwareIDM.ReportingModule.Models.Projection, SoftwareIDM.ReportingModule", "Name": "UserAccountControl", "RelationName": "", "RelationSide": null, "ValueRule": "userAccountControl" }, { "$type": "SoftwareIDM.ReportingModule.Models.Projection, SoftwareIDM.ReportingModule", "Name": "AccountExpires", "RelationName": "", "RelationSide": null, "ValueRule": "If(\n Or(AccountExpires == 0, AccountExpires == special.AD.ACCOUNT_EXPIRES_MAX),\n \"Never\",\n DateTimeFormat(FromFileTime(accountExpires), \"yyyy-MM-dd\")\n)" }, { "$type": "SoftwareIDM.ReportingModule.Models.Projection, SoftwareIDM.ReportingModule", "Name": "Manager", "RelationName": "", "RelationSide": null, "ValueRule": "$\"{TimeTraveler(manager)}|{managerDN}\"" } ], "Transformations": [ { "$type": "SoftwareIDM.ReportingModule.Models.Transform, SoftwareIDM.ReportingModule", "FilterRule": "If(Memo(\"Flag\") == \"*\", true, Contains(UserAccountControl, Memo(\"Flag\")))", "GroupingRule": "", "TransformRules": [] }, { "$type": "SoftwareIDM.ReportingModule.Models.Transform, SoftwareIDM.ReportingModule", "FilterRule": "If(Memo(\"Employee Type\") == \"*\", true, EmployeeType == Memo(\"Employee Type\"))", "GroupingRule": "", "TransformRules": [] }, { "$type": "SoftwareIDM.ReportingModule.Models.Transform, SoftwareIDM.ReportingModule", "FilterRule": "Or(Not(Memo(\"Expires Before\")), And(LowerCase(Memo(\"Expires Before\")) == \"never\", AccountExpires == \"Never\"), And(AccountExpires != \"Never\", AddTime(Today(), Memo(\"Expires Before\")) > AccountExpires))", "GroupingRule": "", "TransformRules": [] }, { "$type": "SoftwareIDM.ReportingModule.Models.Transform, SoftwareIDM.ReportingModule", "FilterRule": "If(Or(Not(Memo(\"Expires After\")), AccountExpires == \"Never\"), true, AddTime(Today(), Memo(\"Expires After\")) < AccountExpires)", "GroupingRule": "", "TransformRules": [] } ], "Styles": [], "Sort": { "Field": "EmployeeID", "Direction": "Ascending" } } ], "Count": 1 }
Comments
0 comments
Please sign in to leave a comment.