cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

Validate Active Directory User

phartwig
13-Aquamarine

Validate Active Directory User

Hello everyone,

 

   Does anyone have a suggestion how to validate if a user is still defined in Active directory?  I have a trigger that is used to copy a requirement structure and when the trigger assigns the requirement, if the user is no longer valid in active directory the trigger returns the error "Invalid user".  However, using the aa or im commands still returns the user.  

   I try to set users to inactive, which I already check, but apperently missed some along the way.

 

 

Thank you,

 

Paul

1 REPLY 1
awalsh
17-Peridot
(To:phartwig)

The isInRealm field for im users will tell you whether the user is still in Active Directory. e.g.

im users --fields=name,isActive,isInRealm will give you a list of all users, along with whether they are Active (yes/no) and in the Realm - in your case Active Directory (true/false).

 

You can also show this column in the Admin GUI when viewing IM users.

Announcements


Top Tags