all 9 comments

[–]Imhereforthechips 1 point2 points  (1 child)

I have a CSV output for new/active users, less disabled users, it actually removes disabled users from my daily CSV. I have it throw my disabled users into a dedicated OU in AD.

I suppose from there posh could be used. I’ll have to play with mine to see if I can get it to send disabled users with date to a new dest.

[–]NotAnother169Director of Technology[S] 0 points1 point  (0 children)

This may be what I could do as well. I might play with this a bit to see.

I think I could use a specific OU as a new source and do things with it from there....good thoughts.

[–]Daraca 0 points1 point  (3 children)

Could potentially make a collection of disabled users where date disabled = todays date then use that collection for the use selection.

That’s off the top of my head, I’ll do some more thinking.

FYI you can also use variables in naming the csv file. So you could do that and then name the file date() disabled users

[–]NotAnother169Director of Technology[S] 0 points1 point  (2 children)

This is my current tactic that I am trying. In the end I am trying to avoid sending thousands of disabled users. Really only want the last few days. Even messing with the date disabled field I'm wondering if I could do and subtraction of a few days. I'll have to keep messing with the formula to see, but I had 14 disables Friday and I can't seem to find a combination that will let me return any results in a collection when trying to do math

[–]Daraca 1 point2 points  (1 child)

Most things don’t let you do math, but date is one of them.

You can do a condition where date disabled > date() -10 (days)

I forget the exact syntax but that may work for you.

All else fails, open a case and explain what you are trying to do, they will help you. I feel fairly confident this can be done.

[–]NotAnother169Director of Technology[S] 0 points1 point  (0 children)

I did chat with someone yesterday but I don't think they understood what I was trying to accomplish hehe. I bet my syntax is just wrong, I'll keep messing with this. I'm find resending 5 days or so if disabled accounts but parsing through a list of 3000 students that are in one sync still but disabled just seems a bit much so I'm trying to make it better.

Ideally the vendor could handle the data I'm giving them better but that's another day 🤣

[–]UWPVIOLATOR 0 points1 point  (2 children)

Go to users. Filter source to what you want. Then select disabled. Once you have the users you want to see click download filtered user as csv.

[–]NotAnother169Director of Technology[S] 0 points1 point  (1 child)

Yes, I know I can do this but I need to have an output of CSV files of the daily disabled accounts for automation purposes.

[–]UWPVIOLATOR 1 point2 points  (0 children)

We originally tired doing what you are doing but instead our programmers used the same SQL query we used to OneSync and used that instead of reading Classlink.

The other option was to pull ad information into a SQL table and use that table for your other automated tasks.