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.

Need to setup Authentication for Scripted REST API

sunilmaddhe
Giga Contributor

Hi Everyone,

I am new to integration, I have created a scripted REST API(GET) to send some CMDB field details in JSON format, It is working fine when tested using REST API Explorer, Now the next we need to setup authentication. Client have provided service account user (username and password) which has cmdb_read role.

 

Please guide me how can I setup this authentication in scripted REST API. Do i need to created ACL of type REST_End type and provide the role as cmdb_read and use this ACL in scripted Rest API. Also How can i test this using Postman?

13 REPLIES 13

Hi @Ankur Bawiskar , Hi Ankur, Client is asking to use LDAP user credential for authentication instead for local user. Is there anything alternative we can suggest to client. How they will be testing this in production?

@sunilmaddhe 

I believe I answered your original question.

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@sunilmaddhe 

you need a local user account for integrations and not LDAP user.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

M Iftikhar
Tera Sage

Hi @sunilmaddhe,
here are some resources I found which might help you set up authentication:

If my response helped, please mark it as the accepted solution so others can benefit as well. 

 

 

Thanks & Regards,
Muhammad Iftikhar

If my response helped, please mark it as the accepted solution so others can benefit as well.