We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Documentation for GlideLDAPUsers()?

perkinsarm
Mega Guru

There is an OOB UI Action Refresh from LDAP that runs this script:

var ldap = new GlideLDAPUsers();
ldap.load(current.user_name.toString());
action.setRedirectURL(current);
gs.addInfoMessage(gs.getMessage("Reload of LDAP data for {0} has been started",current.name));

I am trying to determine what ldap.load returns or what other methods might be available? I haven't been able to find any GlideLDAPUsers documentation.

I want to run a script that loops over all of our active users and flag any that are no longer in the external LDAP user directory.

5 REPLIES 5

Khalnayak
Kilo Sage

Hi@perkinsarm 

have a look at this documentation, it will help to find the other user attributes to be used in your script:

LDAP transform maps

Hope this will be useful for you.

Please, remember to mark Correct or Helpful if you find my response useful.

Cheers