- 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-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-23-2018 12:21 AM
Hi,
Any update on this?
If I have answered your question, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.
Thanks you
Cheers
Alberto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2018 04:25 AM
Hi Alberto
I actually found what I needed via simpler route in our implementation:
var gr = new GlideRecord('ldap_import');
var filter = "u_samaccountname=" + gs.getUserName();
...
var empNo = gr.getValue('u_extensionattribute3');
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2018 04:38 AM
Good to know Simon,
If I have answered your question, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.
Thanks you
Cheers
Alberto