Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to get the list of users from AD in ServiceNow while raising a request?

srividya Reddy
Giga Contributor

We have a requirement to raise a request if any license is needed for an user in AD(Active Directory). We want to select the user from AD (not from the sys_user table in ServiceNow), when raising the request. Will that be possible to lookup all the users in AD while raising the request in ServiceNow Portal?

 

find_real_file.png

iin the above screenshot employee reference should from AD users.

2 REPLIES 2

Aoife
Tera Guru

It is possible, but I would suggest just import all users from AD via LDAP or a push from Azure AD, etc.  That way they all exist locally.  Having to make an integration call every time that gets dropped down is expensive.  If there's a reason to not use sys_user, use a custom table that gets updates from AD on a schedule.

 

Aoife

dhanalakshmi4
Tera Contributor

Hi, Srividya, you have any idea about how to fetch the username in AD from Servicenow. Any replies will be useful.

 

Thanks and Regards,

Dhana.