0 votes

I have struggled with this custom Adaxes property a little, because it is useful in deprovisioning.

When looking at User accounts, the property works via a scheduled task or custom command that updates the property. I can only view this in the web interface, and not in the GUI.

When looking at Computer accounts, the property seems settable, but never shows the value in any interface.

So, is this a bug? And, will it be possible to look at Adaxes properties in the GUI?

by (470 points)

1 Answer

0 votes
by (216k points)

Hello,

The When Marked Inactive property is a special property that serves a very specific purpose, marking the date when a user or computer account was confirmed to be inactive. To avoid potential conflicts, it has certain limitations. One of the limitations is that you can set the When Marked Inactive property only for a disabled account. If you try to set the property for an enabled or expired account, it will not be set (without an error).

As for viewing the When Marked Inactive property in the Administration Console, we are currently not planning to make the property viewable in the Console. However, you can create a Custom Command that will output the value for the property in the Execution Log that will be shown to you once the Command completes. To create such a Custom Command:

  1. Create a new Custom Command.

  2. On the 2nd step of the Create Custom Command wizard, select:

    • User - to be able to check when user accounts were marked as inactive,
    • Computer - to be able to check when computer accounts were marked as inactive.
  3. On the 3rd step, add the Run a program or PowerShell script action and paste the following script in the Script field:

     try
     {
         $whenMarkedInactive = $Context.TargetObject.Get("adm-WhenMarkedInactive")
     }
     catch
     {
         $whenMarkedInactive = "Not set"
     }
    
     $Context.LogMessage($whenMarkedInactive, "Information")
    

Related questions

0 votes
1 answer

Hi, Im using the "When Marked Inactive" custom property that comes with Adaxes. Im trying to test out the deletion of users using that "When Marked Inactive" attribute, but ... if there is a way to see visually that custom attribute on my disabled Test user.

asked Oct 10, 2022 by raul.ramirez (210 points)
0 votes
1 answer

Hi, I've test auto users desactivation, but mess with some conditions. So i think i've got all of my users with "When Marked Inactive" adaxes properties fill with today date. How can i clear this field for all my ad users ? Best regards

asked Dec 15, 2017 by Nicolas.lussier (190 points)
0 votes
1 answer

Hello, is it possible to view the current value of the "when marked inactive" custom attribute somewhere in the gui? Thanks Regards, Thorsten

asked Jul 6, 2012 by techman26 (240 points)
0 votes
1 answer

I want to create a scheduled task to disable a user if he is inactive for 30days, the task must check inacivity o AD and Azure.

asked May 16 by johanpr (120 points)
0 votes
1 answer

Hello, Is there a built in method for checking user accounts that have expired in Azure?

asked Jul 31, 2023 by Homelander90 (350 points)
3,589 questions
3,278 answers
8,303 comments
548,117 users