Need to fetch list of users

kulshreshtha
Giga Contributor

I have synced azure ad to servicenow. Now i need to get the list of users present in servicenow. How can this be done using client script?

1 ACCEPTED SOLUTION

yes in servicenow when you create a variable there are different variable types. One is a String type which you are probably using. You can create a reference type and that should do what you are explaining above ^.



find_real_file.png



This is what it will look like on the form



find_real_file.png



if they enter a name that is not in the user table this happens...



find_real_file.png



I believe this is what you are looking for. No need to customize this


View solution in original post

16 REPLIES 16

Yes this is the simplest approach for this case. Thanks Nate for your valuable input


Also there is one more issue. These users are not able to login with credentials present in AD. I have to again update their password in snow as well. Is there any way that users can login with their passwords present in azure ad


are you using SSO? if you are and it is enabled correctly it should redirect the user to SSO page. or are you only importing from AD?


I dont want sso . If i am able to login into instance using the users imported from AD that's much better. I have followed all steps mentioned in Tutorial: Azure Active Directory integration with ServiceNow | Microsoft Docs .


Have you followed the LDAP guidelines in the wiki? LDAP Integration - ServiceNow Wiki