Has any one integrated there jss with service-now?
- Home
- Community
- Get Support
- General Discussions
- servicenow.com Jamf integration
servicenow.com Jamf integration
- April 9, 2014
- 29 replies
- 47 views
29 replies

- Contributor
- 24 replies
- April 23, 2014
I also have this question, I am wondering if their is a plugin for ServiceNow to allow it access Casper Inventory?
- Employee
- 88 replies
- April 23, 2014
We've been looking for the same thing, but since we were not able to find such an option we are going to end up using the SCCM plug-in to integrate with that and then ServiceNow can integrate with SCCM...
Not really direct, but should work.
- Valued Contributor
- 569 replies
- February 5, 2015
We just deployed ServiceNow here in December 2014. We replaced a deprecated BMC Help Desk & Asset product and we love it. SN is Mac friendly and browser-based.
I'm hoping to have Casper Suite purchased and deployed this winter spring (2015).
I'd love to hear success stories or testimonials on how you have integrated JAMF with SN. Please share.
My main goal is the auto-creation of Assets (CIs) in SN when a new Mac is imaged and deployed into production via JAMF. It would greatly help my Desktop Techs and IT in general.
- Esteemed Contributor
- 1310 replies
- August 5, 2015
was there ever any progress on this? We're rolling out SN soon (end of month is go live date i think).
- Valued Contributor
- 569 replies
- August 5, 2015
I haven't purchased JAMF Casper Suite yet. So most of our computers are added into SN via a service called Help the Help Desk (Windows). Most of the Macs are entered manually into SN at deployment time, which is fairly easy and fast to do, but it would be nice to automate the process to avoid human error etc (damn humans!)
When we procure JAMF after this year, we are also buying SCCM too (replacing Altiris on the Windows side). So it looks to me that Casper will be able to talk to SCCM to create/store new Mac asset records, and then the asset info will go upstream one more hop to SCCM to create new CI records (Configuration Items - which are basically assets)

- Contributor
- 92 replies
- August 5, 2015
@RaulSantos @dstranathan We use serviceNow and have successfully integrated using the REST API. Feel free to hit me up with any questions.

- Contributor
- 92 replies
- August 5, 2015
We also bought the SCCM plug in but decided against using it. Currently servicenow runs a regular job that talks on servicenow that talks to the jss to import new systems and update user info etc. Our next step is to have new assets created in service now set up prestage imaging jobs for newly added inventory.
- Valued Contributor
- 569 replies
- August 5, 2015
Please tell me more about how you used the REST API to gather Mac CI data.
Does your JSS run on Windows and MSSQL?
Thank you sir

- Author
- Contributor
- 52 replies
- August 5, 2015
@RogerUL are you doing this via a database import or an API script?

- Author
- Contributor
- 52 replies
- August 5, 2015
@RogerUL Would you be willing to share that API script? Github?

- Valued Contributor
- 215 replies
- August 7, 2015
@RogerUL Also interested in this as we have just deployed Service Now replacing LanDesk.

- Contributor
- 24 replies
- August 7, 2015
Would love to see this also, we have deployed ServiceNow last week and would be good to know how easy it is to integrate with the JSS

- Contributor
- 92 replies
- August 12, 2015
@5kinner @dmw3 @RaulSantos Here is what I got from our service now guru. Let me know if you have additional questions
1var r = new RESTMessage('Capser', 'get');2var response = r.execute();34var k = 1;5while ( response == null ) {6 gs.print( "waiting ... " + k + " seconds");7 response = r.getResponse( 1000 );8 k++;910 if ( k > 30 ) {11 gs.print( 'service time-out' );12 break;13 }14}1516var jsonString = response.getBody();17var parser = new JSONParser();18var parsed = parser.parse(jsonString);1920for (i = 0; i < parsed.computers.length; i++) {2122 var name = parsed.computers[i].name;2324 var model = parsed.computers[i].model;25 var mac = parsed.computers[i].mac_address;26 var serial_number = parsed.computers[i].serial_number;27 var username = parsed.computers[i].username; //username field format in casper matches sys_user.user_name field format in ServiceNow28 var udid = parsed.computers[i].udid;2930 var rec = new GlideRecord('u_clean_mac');31 rec.initialize();32 rec.u_name = name;33 rec.u_model = model;34 rec.u_mac_address = mac; 35 rec.u_serial_number = serial_number; 36 rec.u_assigned_to = username;37 rec.u_udid = udid;3839 rec.insert();40 gs.log(name + '(Serial - ' + serial_number + ') has been added to the Casper Clean Mac Import table');41}
- Esteemed Contributor
- 1310 replies
- August 12, 2015
@RogerUL thank you for that! Is it missing some context though? I know I am missing some as I haven't seen anything in SN yet - so that may be why, but how does it know where to find the JSS?

- Valued Contributor
- 215 replies
- August 12, 2015

- Contributor
- 10 replies
- August 26, 2015
Is there any way we can have more parameters added in an API? I mean like,right now JSSResource/computers/subset/basic returns a set of attributes for each computer,what if I need more information ?
Thank You,
Remya
- Valued Contributor
- 141 replies
- August 26, 2015
We have done something similar to @RoberUL via the casper api but we call into saved advanced computer search to get more detail. Service Now imports are programming challenges more than casual configuration so one really needs training to understand the environment.

- Contributor
- 35 replies
- March 3, 2016
@RogerUL Hey Roger! Can you share your contact information? Would love to pick your brain a bit as we at CU Boulder want to do the same thing you are doing at your institution.

- Contributor
- 30 replies
- March 14, 2016
We actually mapped the tables to pull data from Casper to ServiceNow and run a sync in the evening. Soon, we will be doing a bi-directional transaction (Read/Write)
Still working on things.

- Valued Contributor
- 126 replies
- August 26, 2016
Just wondering how you guys are integrating Casper data into ServiceNow. Every couple of months this gets brought up. I'd like to be able to setup a nightly sync, but don't even know where to start.
- Valued Contributor
- 569 replies
- August 26, 2016
My company opted to by the JAMF SCCM plug-in, so once implemented, my JSS data will be in SCCCM (which talks to ServiceNow), from which my Mac data will ultimatley get written to ServiceNow.

- New Contributor
- 6 replies
- January 13, 2017
@RaulSantos We integrated with Service Now as well and the SN folks used the REST query advancecomputersearches and export what they needed via XML. Hope this helps.

- New Contributor
- 8 replies
- December 29, 2017
@cshepp11 Hey sorry, but how exactly did you do that? I mean, not exactly, but essentially. We recently started doing discovery on our windows machines and I've been tasked with getting the same form our Macs. Currently, the windows users run a .hta file that gets downloaded, but if I can map as you did man that'd be great. Any assistance, thoughts, etc. you can provide would be awesome, cheers!
Has any one integrated there jss with service-now?
I also have this question, I am wondering if their is a plugin for ServiceNow to allow it access Casper Inventory?
We've been looking for the same thing, but since we were not able to find such an option we are going to end up using the SCCM plug-in to integrate with that and then ServiceNow can integrate with SCCM...
Not really direct, but should work.
We just deployed ServiceNow here in December 2014. We replaced a deprecated BMC Help Desk & Asset product and we love it. SN is Mac friendly and browser-based.
I'm hoping to have Casper Suite purchased and deployed this winter spring (2015).
I'd love to hear success stories or testimonials on how you have integrated JAMF with SN. Please share.
My main goal is the auto-creation of Assets (CIs) in SN when a new Mac is imaged and deployed into production via JAMF. It would greatly help my Desktop Techs and IT in general.
was there ever any progress on this? We're rolling out SN soon (end of month is go live date i think).
I haven't purchased JAMF Casper Suite yet. So most of our computers are added into SN via a service called Help the Help Desk (Windows). Most of the Macs are entered manually into SN at deployment time, which is fairly easy and fast to do, but it would be nice to automate the process to avoid human error etc (damn humans!)
When we procure JAMF after this year, we are also buying SCCM too (replacing Altiris on the Windows side). So it looks to me that Casper will be able to talk to SCCM to create/store new Mac asset records, and then the asset info will go upstream one more hop to SCCM to create new CI records (Configuration Items - which are basically assets)
@RaulSantos @dstranathan We use serviceNow and have successfully integrated using the REST API. Feel free to hit me up with any questions.
We also bought the SCCM plug in but decided against using it. Currently servicenow runs a regular job that talks on servicenow that talks to the jss to import new systems and update user info etc. Our next step is to have new assets created in service now set up prestage imaging jobs for newly added inventory.
Please tell me more about how you used the REST API to gather Mac CI data.
Does your JSS run on Windows and MSSQL?
Thank you sir
@RogerUL are you doing this via a database import or an API script?
API script running in service now.
@RogerUL Would you be willing to share that API script? Github?
@RogerUL Also interested in this as we have just deployed Service Now replacing LanDesk.
Would love to see this also, we have deployed ServiceNow last week and would be good to know how easy it is to integrate with the JSS
@5kinner @dmw3 @RaulSantos Here is what I got from our service now guru. Let me know if you have additional questions
1var r = new RESTMessage('Capser', 'get');2var response = r.execute();34var k = 1;5while ( response == null ) {6 gs.print( "waiting ... " + k + " seconds");7 response = r.getResponse( 1000 );8 k++;910 if ( k > 30 ) {11 gs.print( 'service time-out' );12 break;13 }14}1516var jsonString = response.getBody();17var parser = new JSONParser();18var parsed = parser.parse(jsonString);1920for (i = 0; i < parsed.computers.length; i++) {2122 var name = parsed.computers[i].name;2324 var model = parsed.computers[i].model;25 var mac = parsed.computers[i].mac_address;26 var serial_number = parsed.computers[i].serial_number;27 var username = parsed.computers[i].username; //username field format in casper matches sys_user.user_name field format in ServiceNow28 var udid = parsed.computers[i].udid;2930 var rec = new GlideRecord('u_clean_mac');31 rec.initialize();32 rec.u_name = name;33 rec.u_model = model;34 rec.u_mac_address = mac; 35 rec.u_serial_number = serial_number; 36 rec.u_assigned_to = username;37 rec.u_udid = udid;3839 rec.insert();40 gs.log(name + '(Serial - ' + serial_number + ') has been added to the Casper Clean Mac Import table');41}
@RogerUL thank you for that! Is it missing some context though? I know I am missing some as I haven't seen anything in SN yet - so that may be why, but how does it know where to find the JSS?
Thanks for this!
Is there any way we can have more parameters added in an API? I mean like,right now JSSResource/computers/subset/basic returns a set of attributes for each computer,what if I need more information ?
Thank You,
Remya
We have done something similar to @RoberUL via the casper api but we call into saved advanced computer search to get more detail. Service Now imports are programming challenges more than casual configuration so one really needs training to understand the environment.
@RogerUL Hey Roger! Can you share your contact information? Would love to pick your brain a bit as we at CU Boulder want to do the same thing you are doing at your institution.
We actually mapped the tables to pull data from Casper to ServiceNow and run a sync in the evening. Soon, we will be doing a bi-directional transaction (Read/Write)
Still working on things.
Just wondering how you guys are integrating Casper data into ServiceNow. Every couple of months this gets brought up. I'd like to be able to setup a nightly sync, but don't even know where to start.
My company opted to by the JAMF SCCM plug-in, so once implemented, my JSS data will be in SCCCM (which talks to ServiceNow), from which my Mac data will ultimatley get written to ServiceNow.
@RaulSantos We integrated with Service Now as well and the SN folks used the REST query advancecomputersearches and export what they needed via XML. Hope this helps.
@cshepp11 Hey sorry, but how exactly did you do that? I mean, not exactly, but essentially. We recently started doing discovery on our windows machines and I've been tasked with getting the same form our Macs. Currently, the windows users run a .hta file that gets downloaded, but if I can map as you did man that'd be great. Any assistance, thoughts, etc. you can provide would be awesome, cheers!
Reply
Related topics
Custom Script for log-in Bannericon
General DiscussionsCIS 10.12.x (Sierra) Benchmarks - Locking up...icon
General DiscussionsMigration from old AD Domain to new Domainicon
General DiscussionsMigrating from 2 Domains to 1 Need script helpicon
General DiscussionsSwiftDialog custom notifications via system scriptsicon
General Discussions
Most helpful members this week
- Chubs
58 likes
- tommypatzius
54 likes
- MusicCityMac
28 likes
- GregBobbett
27 likes
- ktrojano
26 likes
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
Scanning file for viruses.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
OKThis file cannot be downloaded
Sorry, our virus scanner detected that this file isn't safe to download.
OKCookie policy
We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.
Cookie settings
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.