Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X
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
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.