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

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

How can I get a list of LDAP users from a script?

smccoy
1-Newbie

How can I get a list of LDAP users from a script?

Hi,

Does anyone have an example for how to make an LDAP call to get a list of users? Please remove any references to secure information in any examples.

We have to resolve a gap between users that have been authorized to use Integrity within LDAP (in other words, being a member of the Integrity AD group), and the users that exists under workflows and documents. Since the users that exist under workflows and documents are not created until a user logs in, we cannot report on users that are actively registered, but have not logged into Integrity.

Kind regards,

--Sean

1 ACCEPTED SOLUTION

Accepted Solutions
tketz
4-Participant
(To:smccoy)

"aa users" gives you all LDAP users!

Really all, not only the users known by Integrity W&D.

If you only want the users known by W&D have look at "im users"

generate both lists and make a diff 🙂

View solution in original post

5 REPLIES 5
smccoy
1-Newbie
(To:smccoy)

Follow-up clarification from more investigation...

Does the "aa users" command return the list of LDAP users, or the list of users under Workflows and Documents, or something else? If it returns the list of LDAP users, then I have my answer. If not, I have 1/2 of my answer and still need to know how to get this list of valid LDAP users from a script.

tketz
4-Participant
(To:smccoy)

"aa users" gives you all LDAP users!

Really all, not only the users known by Integrity W&D.

If you only want the users known by W&D have look at "im users"

generate both lists and make a diff 🙂

smccoy
1-Newbie
(To:tketz)

Thank you, Tobias. That's exactly what I needed to know. 

How do I retrieve a list of the registered users in the MKS Domain.

LLawton
14-Alexandrite
(To:ptc-4669970)

I know it's late to rely to this, but just in case:

the CLI command is integrity mksdomainusers

All mksdomain commands are uder CLI integrity.

Top Tags