- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2018 10:12 AM
Hello
We have an LDAP integration for user authentication and single sign-on login.
I would like to query the other LDAP user attributes that we import in a server side script using ( gs.getUserName() as the query param) .
Can someone tell me how this can be done if possible in script?
I was think something along the line of:
var ldap = new GlideLDAPUsers();
ldap.load( gs.getUserName() );
...
But got no further...
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2018 11:29 AM
Hi Simon,
have a look at this documentation, it will help to find the other user attributes to be used in your script:
Hope this will be useful for you.
Please, remember to mark Correct or Helpful if you find my response useful.
Cheers
Alberto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2018 06:57 AM
Sure, now done.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2019 07:05 AM
In "GlideRecord('ldap_import')", is 'ldap_import' a ServiceNow Glide function or something else like a data source or transform map?
We need our LDAP import transform maps to directly query LDAP to find records related to but different from the LDAP transformed. Your "GlideRecord('ldap_import')" suggestion, as well as possibly GlideLDAPUsers, might be our solution.
Thanks