Create catalog item
Next we are going to create the catalog item for ordering a YubiKey. Doing this step now will allow us to move faster once we start configuring the action and flow. This will give you a baseline understanding of the data that will be required to place a YubiKey order through the YubiEnterprise Delivery API.
Initialize catalog item
On the ServiceNow home screen, search for catalog builder.
Click Catalog Builder, a new window should open.
Once in the Catalog Builder you will click on Create a new catalog item.
A page titled Getting started will open. Press Continue.
A new page titled Select your item template will open. For general purposes you should select Standard items in Service Catalog. If your organization does not have this template, or has another general purpose template, then you may select your preferred option.
Once your template is selected, press the Use this item template button.
Details
You'll first be prompted to add your catalog item details. Utilize the values below to populate the details menu.
- Item name: YubiKey
- Short details: Order your YubiKey
- Image: Not required, but feel free to select an image from the official Yubico image library
- Description: The YubiKey is a hardware based authentication solution that provides superior defense against phishing, eliminates account takeovers, and enables compliance requirements for strong authentication.
Your details menu should look like the example below.
When ready, click the Continue to Location button.
Location
The location options will allow you to set where in your service catalog your YubiKey item will appear.
On the Location screen click Edit selected catagories.
A new menu will open where you can select the catagories. Select every option except the Hardware and Peripherals options, then click on the left pointed arrow, to move the item into the Available options column. Note that this is not a hard requirement, and the catalog item can be placed in whatever category is most appropriate for your organization.
Once complete, your options should look like the image below.
When ready click the Save selections button.
Once you return to the Location menu, press the Continue to Questions button.
Questions
Next we will configure the form values that will allow a user to provide their shipping information for receiving their YubiKey. The user will also select the YubiKey that they want to receive.
Shipping questions
We'll start with the questions related to a user's address. For each row in the table below, perform the following steps:
- Click the Insert new question button
- Add the values provided in the table below (the name will be auto populated based on the label)
Question type | Question subtype | Question Label |
---|---|---|
Text | Single-line | Phone number |
Text | Single-line | Street address |
Text | Single-line | Apt or Unit # |
Text | Single-line | City |
Text | Single-line | Postal Code |
Next we will add a dropdown list for the country code and the region.
Note that country code must be the 2 character ISO country code. These values can either be found on the internet, or you can call the GET /countries
endpoint on the YubiEnterprise Delivery API.
Also the region (state) field is only required for orders made to the US and Canada. Please ensure that you use the 2 character USPS codes, which can be found here
We'll start by configuring the region (state). Follow the steps below:
- Click the Insert new question button
- Change Question type to Choice
- Change Question subtype to Dropdown (fixed values)
- Set Question label to Region (state)
- At this point your new question should look like the image below
- Click Continue to choices
- In the section labeled Available Choices click the + button
- Add one choice with the name California and a value of CA
- Add one choice with the name Texas and a value of TX
- Add one choice with the name New York and a value of NY
For this example we'll only include these three states, but you can expand this list to include additional regions based on the location of your workforce.
Your options should look like the image below.
Click on the Continue to Default values button
In the dropdown select the California option.
Once this is complete press the Insert question button
Next we'll add an input for the country code. Follow the steps below:
- Click the Insert new question button
- Change Question type to Choice
- Change Question subtype to Dropdown (fixed values)
- Set Question label to Country Code
- At this point your new question should look like the image below
- Click Continue to choices
- In the section labeled Available Choices click the + button
- Add one choice with the name United States of America and a value of US
For now we will only allow orders from the US, but you can expand this list to include additional countries based on the location of your workforce.
Your options should look like the image below.
Click on the Continue to Default values button
In the dropdown select the United States of America value.
Once this is complete press the Insert question button
At this point your questions list should look like the image below
YubiKey question
Next we are going to prompt the user for the specific YubiKey that they are requesting. We are going to add another dropdown to contain a variety of different keys.
Follow the steps below to add a new question:
- Click the Insert new question button
- Change Question type to Choice
- Change Question subtype to Dropdown (fixed values)
- Set Question label to YubiKey model
- At this point your new question should look like the image below
- Click Continue to choices
- In the section labeled Available Choices click the + button
- Add one choice with the name YubiKey 5 NFC and a value of 1
- Add one choice with the name YubiKey 5C NFC and a value of 29
- Add one choice with the name YubiKey 5C Nano and a value of 4
For this example we'll only include these three YubiKeys, but you can expand, or subtract, from this list based on the YubiKeys that are present in your YubiEnterprise Console.
Your options should look like the image below.
In the example above, the number associated to each YubiKey is its Product ID. This ID relates to the specific make/model, and tells the API which key to select for a delivery.
Your YubiEnterprise instance may not be comprised of the specific products above, or your Product IDs may differ for various reasons.
The complete list of standard Product IDs can be found at this location.
You may also call the GET /inventory
endpoint for a full list of products associated to your organization.
In the case of custom products, you may work directly with your Yubico representative to get these values.
Click on the Continue to Default values button
In the dropdown select the YubiKey 5 NFC value.
Once this is complete press the Insert question button
At this point your questions list should look like the image below
Fulfillment
From the navigation pane on the left hand side, click Fulfillment.
For the value Selected flow, set the value to Service Catalog item request.
We will need to return to this catalog item to update the Fulfillment options to utilize our custom flow which will be configured later in this guide
Review and submit
Next, from the navigation pane on the left hand side, click Review and submit.
Once you've reviewed the items to ensure that they are correct, click Submit at the bottom of the page.